Add hints for NimbleErrors which help the user fix them.
This commit is contained in:
parent
c0f2bd03b1
commit
8f34336e91
4 changed files with 23 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue