We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4280067 commit b8ef9c9Copy full SHA for b8ef9c9
index.js
@@ -283,8 +283,10 @@
283
if (isOk(child_value)) {
284
result[key] = child_value.value;
285
} else {
286
- // TODO Wrap in key info
287
- return child_value;
+ var msg = 'Failed to decode dictionary, because attempting to decode the field \'' + key + '\' failed with the following error:\n\n';
+ msg += child_value.msg;
288
+ msg += '\nwhen attempting to decode the field \'' + key + '\' of\n' + toDebugString(value);
289
+ return err(msg);
290
}
291
292
0 commit comments