pr changes
This commit is contained in:
parent
6e38446f1e
commit
1c49181acb
4 changed files with 46 additions and 15 deletions
|
@ -143,7 +143,12 @@ function awsGet(id) {
|
|||
Key: id
|
||||
};
|
||||
|
||||
return s3.getObject(params).createReadStream();
|
||||
try {
|
||||
return s3.getObject(params).createReadStream();
|
||||
} catch(err) {
|
||||
log.info('GetFailed', 'Get Object from s3 failed.');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function awsSet(id, file, filename, url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue