Improve incompatible native module error message

Close #6771
This commit is contained in:
Glavin Wiechert
2016-07-02 16:26:36 -03:00
parent e81c805e05
commit 4986a64815

View File

@@ -426,8 +426,8 @@ class Package
return @mainModule if @mainModuleRequired
unless @isCompatible()
console.warn """
Failed to require the main module of '#{@name}' because it requires an incompatible native module.
Run `apm rebuild` in the package directory to resolve.
Failed to require the main module of '#{@name}' because it requires an incompatible native module (#{_.map(@incompatibleModules, 'name').join(', ')}).
Run `apm rebuild` in the package directory and restart Atom to resolve.
"""
return
mainModulePath = @getMainModulePath()