Add hints for NimbleErrors which help the user fix them.

This commit is contained in:
Dominik Picheta 2016-12-22 16:49:24 +01:00
commit 8f34336e91
4 changed files with 23 additions and 7 deletions

View file

@ -40,5 +40,10 @@ when not defined(nimscript):
## Same as quit(QuitSuccess), but allows cleanup.
NimbleQuit* = ref object of Exception
proc raiseNimbleError*(msg: string, hint = "") =
var exc = newException(NimbleError, msg)
exc.hint = hint
raise exc
const
nimbleVersion* = "0.7.11"