Skip to content

Commit

Permalink
FIX: redundant message when logging an error value
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Nov 13, 2023
1 parent a1b79b7 commit a87e667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mezz/sys-base.reb
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ log: func [
/local level
][
if error [
msg: form either block? msg [reduce msg][msg]
msg: trim/head/tail form either block? msg [reduce msg][msg]
foreach line split-lines msg [
print ajoin [
" ^[[35m[" id "] ^[[1m"
either line/1 = #"*" []["** Error: "]
copy/part line 100
copy/part line 200 ;@@ I am not sure with this line length limit
"^[[0m"
]
]
Expand Down

0 comments on commit a87e667

Please sign in to comment.