mirror of
https://github.com/status-im/metro.git
synced 2025-01-23 17:38:59 +00:00
Only capture "ENOENT"s in "FileStore"
Reviewed By: jeanlauliac Differential Revision: D7111352 fbshipit-source-id: 97525051e58482d7f0604cd9c3e50183db83d455
This commit is contained in:
parent
123f1cfd42
commit
cfb8516925
@ -38,7 +38,11 @@ class FileStore {
|
||||
try {
|
||||
return serializer.readFileSync(this._getFilePath(key));
|
||||
} catch (err) {
|
||||
return null;
|
||||
if (err.code === 'ENOENT') {
|
||||
return null;
|
||||
}
|
||||
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user