mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-06-30 18:02:27 -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);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
return [e.toString()];
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue