mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Correct usage of '==' rather than '=' when checking err.code.
This commit is contained in:
parent
8bbf81f4bc
commit
edc06c82e5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ module.exports =
|
|||
sourceStream = fs.createReadStream "#{location}/#{filteredName}", opts
|
||||
sourceStream.on 'error', (err) ->
|
||||
logger.err err:err, location:location, name:name, "Error reading from file"
|
||||
if err.code = 'ENOENT'
|
||||
if err.code == 'ENOENT'
|
||||
callback new Errors.NotFoundError(err.message), null
|
||||
else
|
||||
callback err
|
||||
|
|
Loading…
Reference in a new issue