Implement error messages in the decoder side.

Update issue 7
Status: Started
This commit is contained in:
Petteri Aimonen
2012-08-24 21:22:20 +03:00
parent ea57f74741
commit 0fb5e5e068
12 changed files with 52 additions and 32 deletions

View File

@@ -55,7 +55,7 @@ void handle_connection(int connfd)
if (!pb_decode(&input, ListFilesRequest_fields, &request))
{
printf("Decoding failed.\n");
printf("Decode failed: %s\n", PB_GET_ERROR(&input));
return;
}