mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
can't read file
This commit is contained in:
parent
d45edcd5ff
commit
9d200700bc
@ -93,7 +93,10 @@ __exists = (path) ->
|
||||
OSX.NSFileManager.defaultManager.fileExistsAtPath path
|
||||
|
||||
__read = (path) ->
|
||||
OSX.NSString.stringWithContentsOfFile(path).toString()
|
||||
try
|
||||
OSX.NSString.stringWithContentsOfFile(path).toString()
|
||||
catch e
|
||||
throw "require: can't read #{path}"
|
||||
|
||||
__modules = {}
|
||||
__defines = []
|
||||
|
Loading…
Reference in New Issue
Block a user