Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion share/server/nouveau.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var Nouveau = (function () {
case 'stored':
var value = arguments[2];
if (typeof value != 'number' && typeof value != 'string') {
throw ({ name: 'TypeError', message: 'type of ' + value + ' must be a string or number' });
throw ({ name: 'TypeError', message: 'type of value must be a string or number not ' + typeof value });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! I think we should include name in this string too, so that an error reads type of 'foo' must be a string or number not object for example. so name where value previous was but keep the typeof value at the end?

}
index_results.push({
'@type': type,
Expand Down