Better error reporting

This commit is contained in:
jmjatlanta 2017-09-21 09:45:26 -05:00
parent 3b178a142d
commit 4c457c1dd3

View file

@ -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;
}