Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added stack trace to an optional argument error #5

Merged
merged 1 commit into from

2 participants

@TobiaszCudnik

Added stack trace to an optional argument error, which was ambiguous.

@disnet disnet merged commit f99997c into disnet:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/contracts.coffee
View
3  src/contracts.coffee
@@ -256,7 +256,8 @@ fun = (dom, rng, options) ->
true
else
if prevWasOpt
- throw new Error "Illagal arguments: required argument following an optional argument."
+ throw new Error "Illagal arguments: required argument following an" +
+ "optional argument. #{curr}"
else
false
), false
Something went wrong with that request. Please try again.