1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

merging in gfxmonk's fix for reporting line numbers for unclosed { [ ( opening symbols

This commit is contained in:
Jeremy Ashkenas 2010-03-15 22:09:16 -07:00
parent e87fa4293d
commit c7dd31846d
2 changed files with 2 additions and 2 deletions

View file

@ -288,7 +288,7 @@
if (unclosed.length) {
open = unclosed[0];
line = open_line[open] + 1;
throw new Error("unclosed " + (open) + " on line " + (line));
throw new Error("unclosed " + open + " on line " + line);
}
};
// We'd like to support syntax like this:

View file

@ -189,7 +189,7 @@ exports.Rewriter: class Rewriter
if unclosed.length
open: unclosed[0]
line: open_line[open] + 1
throw new Error("unclosed ${open} on line ${line}")
throw new Error "unclosed $open on line $line"
# We'd like to support syntax like this:
#