Fixes #321.
This commit is contained in:
parent
015233a8b6
commit
4c99e3b6eb
2 changed files with 21 additions and 9 deletions
|
|
@ -49,5 +49,17 @@ when not defined(nimscript):
|
|||
exc.hint = hint
|
||||
raise exc
|
||||
|
||||
proc getOutputInfo*(err: ref NimbleError): (string, string) =
|
||||
var error = ""
|
||||
var hint = ""
|
||||
error = err.msg
|
||||
when not defined(release):
|
||||
let stackTrace = getStackTrace(err)
|
||||
error = stackTrace & "\n\n" & error
|
||||
if not err.isNil:
|
||||
hint = err.hint
|
||||
|
||||
return (error, hint)
|
||||
|
||||
const
|
||||
nimbleVersion* = "0.8.3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue