Browse Source

Uniform exit code (1) for 'duk' errors

pull/1427/head
Sami Vaarala 8 years ago
parent
commit
d382a87a7a
  1. 2
      examples/cmdline/duk_cmdline.c

2
examples/cmdline/duk_cmdline.c

@ -1123,7 +1123,7 @@ static duk_context *create_duktape_heap(int alloc_provider, int debugger, int aj
if (!ctx) {
fprintf(stderr, "Failed to create Duktape heap\n");
fflush(stderr);
exit(-1);
exit(1);
}
#if defined(DUK_CMDLINE_AJSHEAP)

Loading…
Cancel
Save