mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-07-01 10:22:17 -04:00
fix: better error message handling
This commit is contained in:
parent
23214dc9a8
commit
5724ca346f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ const selectedNodes = computed(() => {
|
||||||
return XPathEngine.select(xpath.value, doc);
|
return XPathEngine.select(xpath.value, doc);
|
||||||
}
|
}
|
||||||
catch (e: any) {
|
catch (e: any) {
|
||||||
return e.toString();
|
return [e.toString()];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue