fix: better error message handling

This commit is contained in:
ShareVB committed 2024-08-25 21:48:26 +02:00
1 parent 23214dc9a8
commit 5724ca346f
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ const selectedNodes = computed(() => {
return XPathEngine.select(xpath.value, doc);
}
catch (e: any) {
return e.toString();
return [e.toString()];
}
});