From 4c457c1dd37043b86ff4486360ed1bdf7a257be5 Mon Sep 17 00:00:00 2001 From: jmjatlanta Date: Thu, 21 Sep 2017 09:45:26 -0500 Subject: [PATCH] Better error reporting --- protoutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoutils.c b/protoutils.c index 7117265..c66629c 100644 --- a/protoutils.c +++ b/protoutils.c @@ -638,7 +638,7 @@ int string_to_bytes(uint8_t** finalbytes, size_t* realbbsize, const char* strx, { if(strx[0] != '/') { - printf("Error, must start with '/'\n"); + fprintf(stderr, "multiaddr:string_to_bytes: Error, must start with '/' : [%s].\n", strx); return 0; }