Skip to content

Commit 0c14524

Browse files
authored
cleanup error text
1 parent 5b73903 commit 0c14524

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/flyout_base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ Blockly.Flyout.prototype.show = function(xmlList) {
521521
console.error('failed to load block "' + type + '" for toolbox;', err)
522522
// when a block errors, obscure it from the ui so it doesnt cause death
523523
var errorString =
524-
'<xml><label text="ERR: Block with type ' +
524+
'<xml><label text="ERR: Block type ' +
525525
goog.string.htmlEscape('"' + type + '"') +
526526
' failed to load"></label></xml>'
527-
var errorXML = Blockly.Xml.textToDom(errorString).firstChild
527+
var errorXML = Blockly.Xml.textToDom(errorString).firstChild;
528528
var curButton = new Blockly.FlyoutButton(this.workspace_,
529529
this.targetWorkspace_, errorXML, true);
530530
contents.push({type: 'button', button: curButton});

0 commit comments

Comments
 (0)