Skip to content

Commit

Permalink
Merge pull request #59 from iawia002/error-log
Browse files Browse the repository at this point in the history
wacker: add a line break to the error log
  • Loading branch information
iawia002 authored Apr 10, 2024
2 parents 61beb3e + 8248f5b commit 57933a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wacker/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Server {
Ok(_) => {}
Err(e) => {
error!("running program {} error: {}", id, e);
if let Err(file_err) = stdout.write_all(e.to_string().as_bytes()) {
if let Err(file_err) = stdout.write_fmt(format_args!("{}\n", e)) {
warn!("write error log failed: {}", file_err);
}
if sender.send(e).is_err() {
Expand Down

0 comments on commit 57933a7

Please sign in to comment.