Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added stack trace to an optional argument error #5

Merged
merged 1 commit into from

2 participants

Tobiasz Cudnik Tim Disney
Tobiasz Cudnik

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

Tim Disney disnet merged commit f99997c into from
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
3  src/contracts.coffee
View
@@ -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.