Splitting ERR_GENERAL error code in ERR_FAILED_INTERNAL_ASSERTION and ERR_UNIMPLEMENTED_CASE; introducing ERR_FAILED_ASSERTION_IN_SCRIPT error code for handling non-zero script's exit values.

This commit is contained in:
Ruben Ayrapetyan
2014-09-18 13:59:51 +04:00
parent f402e42d2f
commit 30008f8dc5
5 changed files with 27 additions and 11 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ main (int argc __unused,
bool is_success = jerry_run (source_p, source_size, parse_only, show_opcodes, print_mem_stats);
return is_success ? 0 : 1;
jerry_exit (is_success ? ERR_OK : ERR_FAILED_ASSERTION_IN_SCRIPT);
}
#endif