Skip to content

Commit

Permalink
dont error on le invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMan13 authored Feb 7, 2024
1 parent d7d9b81 commit b6dcb31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blocks_vertical/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,13 @@ Blockly.ScratchBlocks.ProcedureUtils.createAllInputs_ = function(connectionMap)
if (component.substring(0, 1) == '%') {
var argumentType = component.substring(1, 2);
if (!(argumentType == 'n' || argumentType == 'b' || argumentType == 's')) {
labelText = component.trim();
continue
/*
// user error shouldnt literally nuke the app, ignore invalid markers instead of erroring on them
throw new Error(
'Found an custom procedure with an invalid type: ' + argumentType);
*/
}
labelText = component.substring(2).trim();

Expand Down

0 comments on commit b6dcb31

Please sign in to comment.