We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f6c7e commit c5b1405Copy full SHA for c5b1405
src/lib/text/nbt.ts
@@ -44,9 +44,15 @@ export function convertToTextOrEmpty(raw: string): StringyMCText[] {
44
45
try {
46
parsed = JSON.parse(raw);
47
- } catch {
+ } catch (err) {
48
return [
49
- "An error occurred while parsing the SNBT. If this is a bug, please report it to DPH staff!",
+ "",
50
+ {color:"red",text:"An error occurred while parsing the SNBT."},
51
+ {color:"yellow",text:" Please send the "},
52
+ {color:"gold",text:"following error message"},
53
+ {color:"yellow",text:" to Datapack Hub staff:\n"},
54
+ {color:"white",bold:true,text:"Error: "},
55
+ {color:"gray",text:err!.toString()}
56
];
57
}
58
0 commit comments