Skip to content
This repository

Added stack trace to an optional argument error #5

Merged
merged 1 commit into from about 2 years ago

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 March 11, 2012
Tim Disney disnet closed this March 11, 2012
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 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  src/contracts.coffee
3  src/contracts.coffee
@@ -256,7 +256,8 @@ fun = (dom, rng, options) ->
256 256
         true
257 257
       else
258 258
         if prevWasOpt
259  
-          throw new Error "Illagal arguments: required argument following an optional argument."
  259
+          throw new Error "Illagal arguments: required argument following an" +
  260
+            "optional argument. #{curr}"
260 261
         else
261 262
           false
262 263
     ), false
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.