Skip to content

Commit

Permalink
Merge pull request #2291 from herwinw/abort_newline
Browse files Browse the repository at this point in the history
Add newline in Kernel.abort
  • Loading branch information
herwinw committed Nov 5, 2024
2 parents d03e4ec + ee491b1 commit f3a9ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Value KernelModule::abort_method(Env *env, Value message) {
exception = SystemExit.send(env, "new"_s, { Value::integer(1), message })->as_exception();

auto out = env->global_get("$stderr"_s);
out->send(env, "write"_s, { message });
out->send(env, "puts"_s, { message });
} else {
exception = SystemExit.send(env, "new"_s, { Value::integer(1) })->as_exception();
}
Expand Down

0 comments on commit f3a9ffa

Please sign in to comment.