Added error output on ufraw
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
fda62d576b
commit
046275b543
@ -239,9 +239,9 @@ function convertNefToJpg(path, file) {
|
||||
error += data;
|
||||
});
|
||||
|
||||
ufraw.on('close', function(code) {
|
||||
if (code != 0) {
|
||||
return reject("UFRAW for " + path + "/" + file + " returned an error: ", error);
|
||||
ufraw.on('exit', function(code, signal) {
|
||||
if (signal || code != 0) {
|
||||
return reject("UFRAW for " + path + "/" + file + " returned an error: " + code + "\n" + signal + "\n" + error + "\n");
|
||||
}
|
||||
return mkdirPromise(path + "/raw").then(function() {
|
||||
fs.rename(path + "/" + file, path + "/raw/" + file, function(err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user