mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Return error when role or subject create fails.
This commit is contained in:
@@ -30,6 +30,7 @@ function init (env, ctx) {
|
||||
collection.insert(obj, function (err, doc) {
|
||||
if (err != null && err.message) {
|
||||
console.log('Data insertion error', err.message);
|
||||
fn(err.message, null);
|
||||
return;
|
||||
}
|
||||
storage.reload(function loaded() {
|
||||
|
||||
Reference in New Issue
Block a user