Skip to content

Commit fd5af27

Browse files
committed
Log unsuccessful global resource parsing
1 parent fdb349b commit fd5af27

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-shv",
3-
"version": "8.0.7",
3+
"version": "8.0.8",
44
"description": "Vue support for libshv-js",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/vue-shv.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ export function useShv(options: VueShvOptions) {
397397
const refreshValue = async () => {
398398
const newResource = await resourceCall();
399399
if (newResource instanceof Error) {
400+
const shvPath = await resolveString(options.shvPath);
401+
const resIdentifier = `${shvPath}:${options.method}`;
402+
console.error(`Failed to parse new data for resource: ${resIdentifier}:`, newResource);
400403
return;
401404
}
402405

0 commit comments

Comments
 (0)