forked from MapComplete/MapComplete
Fix: better error handling and handling of changes
This commit is contained in:
parent
7b73578f88
commit
7813653265
8 changed files with 36 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue