Skip to content

Commit

Permalink
tools: exit with non-zero value on uchardet error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jehan committed Jan 21, 2016
1 parent b6d872b commit 248d6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/uchardet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void detect(FILE * fp)
if (retval != 0)
{
fprintf(stderr, "Handle data error.\n");
exit(0);
exit(1);
}
}
uchardet_data_end(handle);
Expand Down

0 comments on commit 248d6db

Please sign in to comment.