mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Throw error when activating incompatible package
This commit is contained in:
@@ -96,6 +96,8 @@ class Package
|
||||
Q.all([@grammarsPromise, @scopedPropertiesPromise, @activationDeferred.promise])
|
||||
|
||||
activateNow: ->
|
||||
throw new Error("#{@name}@#{@metadata.version} is not compatible with this version of Atom") unless @isCompatible()
|
||||
|
||||
try
|
||||
@activateConfig()
|
||||
@activateStylesheets()
|
||||
|
||||
Reference in New Issue
Block a user