Fixed error message display
diff --git a/lib/Korap/Plugin/KorapSearch.pm b/lib/Korap/Plugin/KorapSearch.pm
index d42ae61..9d95026 100644
--- a/lib/Korap/Plugin/KorapSearch.pm
+++ b/lib/Korap/Plugin/KorapSearch.pm
@@ -137,7 +137,8 @@
       my $tx = $ua->get($url);
 
       if (my $e = $tx->error) {
-	$c->notify(error => $e->{code} . ': ' . $e->{message} . ' (remote)');
+	$c->notify(error => ($e->{code} ? $e->{code} . ': ' : '') .
+		     $e->{message} . ' (remote)');
 	return;
       };