Skip to content

Commit

Permalink
Fix errStr spelling (undetected before since `styleCheck=usages
Browse files Browse the repository at this point in the history
styleCheck=error` does not work without `hint[Name]=on` also set).
  • Loading branch information
c-blake committed Sep 3, 2024
1 parent 60476dd commit 140ac53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cligen/osUt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ proc perror*(x: cstring, len: int, code: OSErrorCode, err=stderr) =
## Clunky w/spartan msgs, but allows safe output from OpenMP || blocks.
if err == nil: return
let errStr = strerror(code.cint)
let errLen = strlen(errstr)
let errLen = strlen(errStr)
try:
discard err.writeBuffer(x.pointer, len); err.write ": "
discard err.writeBuffer(errstr, errlen); err.write "\n"
Expand Down

0 comments on commit 140ac53

Please sign in to comment.