Skip to content

Commit 5724ca3

Browse files
committed
fix: better error message handling
1 parent 23214dc commit 5724ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/xpath-tester/xpath-tester.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const selectedNodes = computed(() => {
1212
return XPathEngine.select(xpath.value, doc);
1313
}
1414
catch (e: any) {
15-
return e.toString();
15+
return [e.toString()];
1616
}
1717
});
1818

0 commit comments

Comments
 (0)