{"record":{"id":"7465ed26daeacbbf","repo":"pcottle/learnGitBranching","slug":"help-vague-builder","errorCode":null,"errorMessage":"help-vague-builder","messagePattern":"help-vague-builder","errorType":"exception","errorClass":"CommandResult","httpStatus":null,"severity":"info","filePath":"src/js/level/builder.js","lineNumber":179,"sourceCode":"    );\n    this.parseWaterfall.addFirst(\n      'instantWaterfall',\n      this.getInstantCommands()\n    );\n  }\n\n  buildLevel(command, deferred) {\n    this.exitLevel();\n\n    setTimeout(function() {\n      Main.getSandbox().buildLevel(command, deferred);\n    }, this.getAnimationTime() * 1.5);\n  }\n\n  getInstantCommands() {\n    return [\n      [/^help$|^\\?$/, function() {\n        throw new Errors.CommandResult({\n          msg: intl.str('help-vague-builder')\n        });\n      }]\n    ];\n  }\n\n  takeControl() {\n    Main.getEventBaton().stealBaton('processLevelBuilderCommand', this.processLevelBuilderCommand, this);\n\n    super.takeControl();\n  }\n\n  releaseControl() {\n    Main.getEventBaton().releaseBaton('processLevelBuilderCommand', this.processLevelBuilderCommand, this);\n\n    super.releaseControl();\n  }\n","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/pcottle/learnGitBranching/blob/5b09d0ff9678cad164f5a7488a279a44f90d7256/src/js/level/builder.js#L161-L197","documentation":"Thrown by Levels.getInstantCommands in level/builder.js when the user types 'help' or '?' during a level built with the builder. Because builder-based levels define their own goal/command surface, the generic per-level help string is unavailable, so a vague 'here is the builder, try things' message (help-vague-builder) is returned as a CommandResult.","triggerScenarios":"Entering 'help' or '?' at the command line while a builder-constructed level is active; the instant-command regex /^help$|^\\?$/ matches before any git parsing happens.","commonSituations":"Users exploring available commands in custom/builder levels; expected informational behavior, not a crash.","solutions":["No fix needed — this is the intended help output for builder levels","Use 'hint' or the level goal panel for level-specific guidance","Type command names directly; builder levels do not enumerate commands in help"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { dispatch(input); } catch (e) { if (e instanceof CommandResult) { display(e.msg); } else throw e; }","preventionTips":["Use 'hint' for level-specific help in builder levels"],"tags":["help","level","builder","command-result"],"backgroundTag":"help-command-output","analyzedSha":"5b09d0ff9678cad164f5a7488a279a44f90d7256","analyzedAt":"2026-08-27T13:53:49.057Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}