mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 15:46:28 +08:00
Fix in FileUploadsStore
This commit is contained in:
parent
dcb08932c0
commit
7f37e8f56b
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
_getFileStats: ({messageClientId, filePath}) ->
|
||||
fs.stat originPath, (err, stats) =>
|
||||
fs.stat filePath, (err, stats) =>
|
||||
if err
|
||||
reject("#{filePath} could not be found, or has invalid file permissions.")
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue