mirror of https://github.com/status-im/NimYAML.git
Removed trailing ws; JS fixes
* do not call writeStackTrace() if compiling to JS
This commit is contained in:
parent
34cbe61479
commit
ef9159ab98
2
yaml.nim
2
yaml.nim
|
@ -401,6 +401,7 @@ template internalError(s: string) =
|
|||
let ii = instantiationInfo()
|
||||
echo "[NimYAML] Error in file ", ii.filename, " at line ", ii.line, ":"
|
||||
echo s
|
||||
when not defined(JS):
|
||||
echo "[NimYAML] Stacktrace:"
|
||||
try: writeStackTrace()
|
||||
except: discard
|
||||
|
@ -412,6 +413,7 @@ template yAssert(e: typed) =
|
|||
let ii = instantiationInfo()
|
||||
echo "[NimYAML] Error in file ", ii.filename, " at line ", ii.line, ":"
|
||||
echo "assertion failed!"
|
||||
when not defined(JS):
|
||||
echo "[NimYAML] Stacktrace:"
|
||||
try: writeStackTrace()
|
||||
except: discard
|
||||
|
|
Loading…
Reference in New Issue