1
0
Fork 0
mirror of https://github.com/CorentinTh/it-tools.git synced 2025-08-09 07:25:18 +02:00

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()];
}
});