aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index 42adcaad8..48cbb6038 100644
--- a/src/peerinfo-tool/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -157,14 +157,15 @@ print_address (void *cls,
157static void 157static void
158print_peer_info (void *cls, 158print_peer_info (void *cls,
159 const struct GNUNET_PeerIdentity *peer, 159 const struct GNUNET_PeerIdentity *peer,
160 const struct GNUNET_HELLO_Message *hello) 160 const struct GNUNET_HELLO_Message *hello,
161 const char * err_msg)
161{ 162{
162 struct GNUNET_CRYPTO_HashAsciiEncoded enc; 163 struct GNUNET_CRYPTO_HashAsciiEncoded enc;
163 struct PrintContext *pc; 164 struct PrintContext *pc;
164 165
165 if (peer == NULL) 166 if (peer == NULL)
166 { 167 {
167 fprintf (stderr,_("Error in communication with PEERINFO service\n")); 168 if (err_msg != NULL) fprintf (stderr,_("Error in communication with PEERINFO service\n"));
168 GNUNET_PEERINFO_disconnect (peerinfo); 169 GNUNET_PEERINFO_disconnect (peerinfo);
169 return; 170 return;
170 } 171 }