diff options
author | alaviss <alaviss@users.noreply.github.com> | 2019-07-13 21:16:09 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-13 16:16:09 +0200 |
commit | a59fb5b35226d7faac9a4371887f2ce0cbd773bd (patch) | |
tree | a02d7a8256a4259bdd0653780d9a1821269c1eab /lib | |
parent | cf36e4a44a0436ae8b798311ced2e20f513e12d9 (diff) | |
download | Nim-a59fb5b35226d7faac9a4371887f2ce0cbd773bd.tar.gz |
os: confine osErrorMsg example to Linux (#11725)
POSIX does **not** define the exact number for each errors. This caused a failure in docs building on Haiku.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/includes/oserr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim index 34d8d0085..138aa127d 100644 --- a/lib/pure/includes/oserr.nim +++ b/lib/pure/includes/oserr.nim @@ -31,7 +31,7 @@ proc osErrorMsg*(errorCode: OSErrorCode): string = ## * `raiseOSError proc <#raiseOSError,OSErrorCode,string>`_ ## * `osLastError proc <#osLastError>`_ runnableExamples: - when defined(posix): + when defined(linux): assert osErrorMsg(OSErrorCode(0)) == "" assert osErrorMsg(OSErrorCode(1)) == "Operation not permitted" assert osErrorMsg(OSErrorCode(2)) == "No such file or directory" |