Skip to content

Commit

Permalink
Slightly better styling
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaMinaei committed Jan 24, 2014
1 parent 2d45267 commit f6a9ba0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pretty-error",
"version": "0.1.6",
"version": "0.1.7",
"description": "",
"main": "scripts/js/lib/PrettyError.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/coffee/lib/ParsedError.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = class ParsedError
# remove the 'at ' part
text = text.replace /^at /, ''

return if text is 'Error (<anonymous>)'
return if text in ['Error (<anonymous>)', 'Error (<anonymous>:null:null)']

original = text

Expand Down
2 changes: 1 addition & 1 deletion scripts/coffee/lib/PrettyError.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ module.exports = class PrettyError
# we call them wrappers here.
if e.wrapper isnt ''

ret.wrapper = e.wrapper + ":"
ret.wrapper = "#{e.wrapper}"

ret.kind = e.kind

Expand Down
2 changes: 1 addition & 1 deletion scripts/coffee/lib/prettyError/defaultStyle.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = -> {

margin: '0 1'

color: 'bright-white'
color: 'grey'

'pretty-error > header > colon':

Expand Down

0 comments on commit f6a9ba0

Please sign in to comment.