mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 21:58:13 +00:00
[Persistence] Tweak logic
Tweak approach for revision conflict detection; particularly, use .reject instead of throw to avoid logging of the failure unnecessarily. WTD-1033.
This commit is contained in:
@ -78,11 +78,11 @@ define(
|
||||
// Load the updated model, then reject the promise
|
||||
return get(key).then(function (model) {
|
||||
error.model = model;
|
||||
throw error;
|
||||
return $q.reject(error);
|
||||
});
|
||||
}
|
||||
// Reject the promise
|
||||
throw error;
|
||||
return $q.reject(error);
|
||||
}
|
||||
|
||||
// Check the response to a create/update/delete request;
|
||||
|
Reference in New Issue
Block a user