vendor/docs/error-reporting.md in stylus-source-0.22.6 vs vendor/docs/error-reporting.md in stylus-source-0.23.0

- old
+ new

@@ -1,29 +1,29 @@ ## Error Reporting - Stylus has fantastic error reporting built in for syntax, parse, and evaluation errors, complete with stack traces, line numbers, and filenames. + Stylus has fantastic error reporting built-in for syntax, parse, and evaluation errors—complete with stack traces, line numbers, and filenames. ### Parse Error Parse error example: body form input == padding 5px -yielding: +Yielding: Error: /Users/tj/Projects/stylus/testing/test.styl:4 3: ' form input' 4: ' == padding 5px' illegal unary == ### Evaluation Error - This "runtime" or evaluation error is caused due to passing a string to `border-radius()` instead of the expected `Unit` by using our helper `ensure(n, 'unit')`. + This "runtime" or evaluation error is caused by passing a string to `border-radius()`, instead of the expected `Unit` (by using our helper `ensure(n, 'unit')`). ensure(val, type) unless val is a type error('expected a ' + type + ', but got ' + typeof(val)) @@ -34,10 +34,10 @@ border-radius n body border-radius '5px' -yielding: +Yielding: Error: /Users/tj/Projects/stylus/examples/error.styl:12 11: '' 12: 'body' 13: ' border-radius \'5px\''