Fix in FileUploadsStore

This commit is contained in:
Juan Tejada 2016-01-26 15:44:27 -08:00
parent dcb08932c0
commit 7f37e8f56b

View file

@ -86,7 +86,7 @@ class FileUploadStore extends NylasStore
throw new Error "You need to pass the ID of the message (draft) this Action refers to" throw new Error "You need to pass the ID of the message (draft) this Action refers to"
_getFileStats: ({messageClientId, filePath}) -> _getFileStats: ({messageClientId, filePath}) ->
fs.stat originPath, (err, stats) => fs.stat filePath, (err, stats) =>
if err if err
reject("#{filePath} could not be found, or has invalid file permissions.") reject("#{filePath} could not be found, or has invalid file permissions.")
else else