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 2118e08 commit 4a681a4Copy full SHA for 4a681a4
core/lib/json_copy.js
@@ -6,8 +6,8 @@ const json_copy = (data, callee) => {
6
return JSON.parse(JSON.stringify(data));
7
} catch (e) {
8
//this is unlikely to be hit due to the passed in data already being loaded using JSON parsers
9
- plutils.error(`JSON provided by ${callee} is invalid and cannot be copied`);
10
- return {};
+ plutils.warning(`JSON provided by ${callee} is invalid and cannot be copied`);
+ throw (e);
11
}
12
};
13
0 commit comments