mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
Only log require.resolve warning when verifyExistence is true
This commit is contained in:
@@ -86,10 +86,10 @@ resolve = (name, {verifyExistence}={}) ->
|
||||
else
|
||||
file = __expand(file) or file
|
||||
|
||||
if file[0] == '/' and (not verifyExistence or __exists(file))
|
||||
if file[0] == '/'
|
||||
file
|
||||
else
|
||||
console.warn("Failed to resolve '#{name}'")
|
||||
console.warn("Failed to resolve '#{name}'") if verifyExistence
|
||||
null
|
||||
|
||||
__expand = (path) ->
|
||||
|
||||
Reference in New Issue
Block a user