aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
authorkumar <kumar.damani@mail.utoronto.ca>2016-07-26 23:40:23 +0000
committerkumar <kumar.damani@mail.utoronto.ca>2016-07-26 23:40:23 +0000
commitb65166302f5296165da115ed96ce112433157a2d (patch)
treee979afcc57d0043bcffe3a929fb8ea2470924abf /node_simple.js
parent248a428bace05c9b345128e96fa134a56eeabcdc (diff)
minor bug fix
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_simple.js b/node_simple.js
index ca20978..008cf81 100644
--- a/node_simple.js
+++ b/node_simple.js
@@ -781,7 +781,7 @@ exports.get_all_solutions = function (exam_id, q_num, callback) {
exports.get_exam_byID(exam_id, function (success, failure, exam) {
if (!success && failure) { // some error occurred while searching
callback(false, true, "Error: Some error occurred while searching for exam", null);
- } else if (!success && !failure) {
+ } else if (!success && !failure) {
callback(false, true, "Error: this exam doesn't exist", null);
} else if (success && !failure) { // this exam exists proceed with task
mongoFactory.getConnection(uri).then(function (db) {
@@ -801,7 +801,7 @@ exports.get_all_solutions = function (exam_id, q_num, callback) {
});
}).catch(function () {
- callback(false, true, "Error: Some error occurred with the db connection");
+ callback(false, true, "Error: Some error occurred with the db connection", null);
})
}
});