forked from MapComplete/MapComplete
Studio: more fixes
This commit is contained in:
parent
3ceebaba12
commit
80b7a038cf
7 changed files with 129 additions and 77 deletions
|
@ -39,6 +39,12 @@ export class ConversionContext {
|
|||
}
|
||||
|
||||
static print(msg: ConversionMessage) {
|
||||
const noString = msg.context.path.filter(
|
||||
(p) => typeof p !== "string" && typeof p !== "number"
|
||||
)
|
||||
if (noString.length > 0) {
|
||||
console.warn("Non-string value in path:", ...noString)
|
||||
}
|
||||
if (msg.level === "error") {
|
||||
console.error(
|
||||
ConversionContext.red("ERR "),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue