Skip to content

Commit

Permalink
Fixed create-exe WASI programs that will fail to exit properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Mar 10, 2023
1 parent 1dfddf8 commit 6308144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/commands/wasmer_create_exe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ int main(int argc, char *argv[]) {
wasm_message_t retrieved_message;
// TODO: this is a shitty solution, but it's good enough for now
wasm_trap_message(trap, &retrieved_message);
if (strcmp(retrieved_message.data, "WASI exited with code: 0") == 0) {
if (strcmp(retrieved_message.data, "WASI exited with code: success (error 0)") == 0) {
wasm_trap_delete(trap);
} else {
fprintf(stderr, "%s", retrieved_message.data);
Expand Down

0 comments on commit 6308144

Please sign in to comment.