From ac138c1dc83255b498a33dce7055b39f334d9d65 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 25 Jul 2014 15:46:35 -0700 Subject: [PATCH] Throw error when activating incompatible package --- src/package.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/package.coffee b/src/package.coffee index 4f90132f6..f8b9cabac 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -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()