We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4e3467 commit 2c1e7eeCopy full SHA for 2c1e7ee
1 file changed
server/controllers/things/models/commons/journal.js
@@ -6,7 +6,7 @@ const error_ = __.require('lib', 'error')
6
module.exports = {
7
create: function (type) {
8
if (!type) {
9
- throw error_.new('expected a type', 500, arguments)
+ throw error_.new('Type attribute missing.', 500, arguments)
10
}
11
var journal = {
12
context: 'journal',
@@ -18,7 +18,7 @@ module.exports = {
18
update: function (journalDoc, newVersionDoc) {
19
const versionId = newVersionDoc._id
20
if (!_.isUuid(versionId)) {
21
- throw error_.new('expected version id to be a Couchdb uuid', 500, arguments)
+ throw error_.new('Version attribute not a UUID.', 500, arguments)
22
23
journalDoc.versions.push(versionId)
24
journalDoc.data = newVersionDoc.data
0 commit comments