Skip to content

Commit

Permalink
Print one more errno message in a more useful way
Browse files Browse the repository at this point in the history
  • Loading branch information
necessarily-equal committed Oct 24, 2024
1 parent 6f7d19f commit 9e51d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/sys/con_tty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ void WriteToStdout(const char* text) {

if (ret < 0) {
// Do not log to stdout
Log::Dispatch( Str::Format("Error writing to the terminal: %d", errno),
Log::Dispatch( Str::Format("Error writing to the terminal: %s", strerror(errno)),
((1<<Log::MAX_TARGET_ID)-1) & ~(1<<Log::TTY_CONSOLE)
);
);
}
}

Expand Down

0 comments on commit 9e51d49

Please sign in to comment.