mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
Added std/oserrors for OS error reporting (#19390)
* Added 'std/oserrors' for OS error reporting * add a simple test * New code should not support -d:useWinAnsi anymore thanks to @Araq
This commit is contained in:
9
tests/stdlib/toserrors.nim
Normal file
9
tests/stdlib/toserrors.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
import std/oserrors
|
||||
|
||||
let x1 = osLastError()
|
||||
raiseOSError(x1)
|
||||
echo osErrorMsg(x1)
|
||||
Reference in New Issue
Block a user