fix: better error message handling

This commit is contained in:
ShareVB 2024-08-25 21:48:26 +02:00
parent 23214dc9a8
commit 5724ca346f

View file

@ -12,7 +12,7 @@ const selectedNodes = computed(() => {
return XPathEngine.select(xpath.value, doc);
}
catch (e: any) {
return e.toString();
return [e.toString()];
}
});