Fix: better error handling and handling of changes

This commit is contained in:
Pieter Vander Vennet 2023-05-01 01:14:48 +02:00
parent 7b73578f88
commit 7813653265
8 changed files with 36 additions and 10 deletions

View file

@ -61,6 +61,7 @@ export default class TagApplyButton implements AutoAction, SpecialVisualization
if (kv.length == 2) {
tgsSpec.push(<[string, string]>kv)
} else if (kv.length < 2) {
console.error("Invalid key spec: no '=' found in " + spec)
throw "Invalid key spec: no '=' found in " + spec
} else {
throw "Invalid key spec: multiple '=' found in " + spec