mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Show notifications for theme activate errors
This commit is contained in:
@@ -26,7 +26,10 @@ class ThemePackage extends Package
|
||||
|
||||
@activationDeferred = Q.defer()
|
||||
@measure 'activateTime', =>
|
||||
@loadStylesheets()
|
||||
@activateNow()
|
||||
try
|
||||
@loadStylesheets()
|
||||
@activateNow()
|
||||
catch error
|
||||
@handleError("Failed to activate the #{@name} theme", error)
|
||||
|
||||
@activationDeferred.promise
|
||||
|
||||
Reference in New Issue
Block a user