Added error output on ufraw
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
e3d75c82c9
commit
fda62d576b
@ -234,9 +234,14 @@ function convertNefToJpg(path, file) {
|
||||
path + "/" + file
|
||||
]);
|
||||
|
||||
let error = "";
|
||||
ufraw.stderr.on('data', function(data) {
|
||||
error += data;
|
||||
});
|
||||
|
||||
ufraw.on('close', function(code) {
|
||||
if (code != 0) {
|
||||
return reject("UFRAW for " + path + "/" + file + " returned an error: " + code);
|
||||
return reject("UFRAW for " + path + "/" + file + " returned an error: ", 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