mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Don't swallow all command panel errors as if they were SyntaxErrors
This wasn't our fault. SyntaxError's implementation is weird and so every error ends up being an instance of it. Boo.
This commit is contained in:
@@ -81,7 +81,7 @@ class CommandPanel extends View
|
||||
else
|
||||
@detach()
|
||||
catch error
|
||||
if error instanceof SyntaxError
|
||||
if error.name is "SyntaxError"
|
||||
@flashError()
|
||||
return
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user