mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 15:47:08 +00:00
Show error when importing invalid json
This commit is contained in:
@@ -59,7 +59,7 @@ export function SourcePanel({ lang, name, model, blockStates, doCopy, doDownload
|
||||
const data = JSON.parse(source.current.value)
|
||||
model?.reset(data, false)
|
||||
} catch (e) {
|
||||
// TODO
|
||||
onError(`Error importing: ${e.message}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user