Move corrupt NEFs and continue processing
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
430c5e7ae9
commit
a168001830
@ -241,8 +241,11 @@ function convertNefToJpg(path, file) {
|
||||
|
||||
ufraw.on('exit', function(code, signal) {
|
||||
if (signal || code != 0) {
|
||||
console.error("UFRAW for " + path + "/" + file + " returned an error: " + code + "\n" + signal + "\n" + error + "\n");
|
||||
return moveCorrupt(path, file);
|
||||
let error = "UFRAW for " + path + "/" + file + " returned an error: " + code + "\n" + signal + "\n" + error + "\n";
|
||||
console.error(error);
|
||||
return moveCorrupt(path, file).then(function() {
|
||||
return reject(error);
|
||||
});
|
||||
}
|
||||
return mkdirPromise(path + "/raw").then(function() {
|
||||
fs.rename(path + "/" + file, path + "/raw/" + file, function(err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user