From 9c48974f6d362173056d8bd2c6d263c3e05cef9b Mon Sep 17 00:00:00 2001 From: Elijah Parker Date: Tue, 6 Dec 2016 22:37:58 -0600 Subject: [PATCH] capture error feedback --- interface/ui.js | 4 ++-- intervalometer/intervalometer.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/interface/ui.js b/interface/ui.js index 299d16883..c716cfbff 100644 --- a/interface/ui.js +++ b/interface/ui.js @@ -290,7 +290,7 @@ exports.confirmationPrompt = function(promptText, optionText1, optionText2, help callback1(cb); } else { back(); - cb(); + //cb(); } } } @@ -305,7 +305,7 @@ exports.confirmationPrompt = function(promptText, optionText1, optionText2, help callback2(cb); } else { back(); - cb(); + //cb(); } } } diff --git a/intervalometer/intervalometer.js b/intervalometer/intervalometer.js index fd7dc59d1..49f5210ce 100644 --- a/intervalometer/intervalometer.js +++ b/intervalometer/intervalometer.js @@ -253,6 +253,8 @@ function runPhoto() { //writeFile(); intervalometer.emit("status", status); console.log("program status:", status); + } else { + intervalometer.emit('error', "An error occurred during capture. This could mean that the camera body is not supported or possibly an issue with the cable disconnecting.\nThe time-lapse will attempt to continue anyway.\nSystem message: ", err); } if (intervalometer.status.framesRemaining < 1 || status.running == false) { clearTimeout(timerHandle); @@ -306,6 +308,8 @@ function runPhoto() { writeFile(); intervalometer.emit("status", status); console.log("program status:", status); + } else { + intervalometer.emit('error', "An error occurred during capture. This could mean that the camera body is not supported or possibly an issue with the cable disconnecting.\nThe time-lapse will attempt to continue anyway.\nSystem message: ", err); } if ((intervalometer.currentProgram.intervalMode == "fixed" && intervalometer.status.framesRemaining < 1) || status.running == false) { clearTimeout(timerHandle); @@ -570,7 +574,7 @@ intervalometer.getRecentTimelapseClips = function(count, callback) { setTimeout(function(){ //console.log("clips:", clips); clips = clips.sort(function(a, b){ - return a.name < b.name; + return a.index < b.index; }); callback(null, clips); });