Skip to content

Commit

Permalink
Writing error messages to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
iinsertNameHere committed Nov 19, 2024
1 parent 538d929 commit 91fe6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catnaplib/terminal/logging.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import strformat
import "colors.nim"

proc logError*(msg: string, fatal: bool = true) =
echo Foreground.Red & &"ERROR: {msg}" & Default
stderr.writeLine Foreground.Red & &"ERROR: {msg}" & Default
if fatal: quit(1)

0 comments on commit 91fe6ef

Please sign in to comment.