improve error message in request data programs

This commit is contained in:
Robert Johansson 2013-07-03 22:31:57 +09:00
parent e1164c87c9
commit 0a0403988c
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ main(int argc, char **argv)
if (mbus_frame_data_parse(&reply, &reply_data) == -1) if (mbus_frame_data_parse(&reply, &reply_data) == -1)
{ {
fprintf(stderr, "M-bus data parse error.\n"); fprintf(stderr, "M-bus data parse error: %s\n", mbus_error_str());
return 1; return 1;
} }

View File

@ -136,7 +136,7 @@ main(int argc, char **argv)
if (mbus_frame_data_parse(&reply, &reply_data) == -1) if (mbus_frame_data_parse(&reply, &reply_data) == -1)
{ {
fprintf(stderr, "M-bus data parse error.\n"); fprintf(stderr, "M-bus data parse error: %s\n", mbus_error_str());
return 1; return 1;
} }