Prevent fail when there's a screenshot error

This commit is contained in:
Gaël Métais
2015-05-10 14:51:36 +02:00
parent eaeff3bf6a
commit 6c47c406cb
5 changed files with 18 additions and 3 deletions
+7 -1
View File
@@ -109,8 +109,14 @@ var ApiController = function(app) {
}
})
// Delete screenshot temporary file
.then(screenshot.deleteTmpFile);
.then(screenshot.deleteTmpFile)
// Don't worry if there's an error
.fail(function(err) {
debug('An error occured while creating the screenshot\'s thumbnail. Ignoring and continuing...');
});
}