{"record":{"id":"2242f4062dadb84b","repo":"pcottle/learnGitBranching","slug":"help-vague-level","errorCode":null,"errorMessage":"help-vague-level","messagePattern":"help-vague-level","errorType":"exception","errorClass":"CommandResult","httpStatus":null,"severity":"info","filePath":"src/js/level/index.js","lineNumber":619,"sourceCode":"    delete this.mainVis;\n    delete this.goalVis;\n    delete this.goalCanvasHolder;\n    delete this.goalDragHandler;\n    LevelActions.setIsSolvingLevel(false);\n  }\n\n  getInstantCommands() {\n    var getHint = function() {\n      var hint = intl.getHint(this.level);\n      if (!hint || !hint.length) {\n        return intl.str('no-hint');\n      }\n      return hint;\n    }.bind(this);\n\n    return [\n      [/^help$|^\\?$/, function() {\n        throw new Errors.CommandResult({\n          msg: intl.str('help-vague-level')\n        });\n      }],\n      [/^hint$/, function() {\n        throw new Errors.CommandResult({\n          msg: getHint()\n        });\n      }]\n    ];\n  }\n\n  reset(command, deferred) {\n    this.gitCommandsIssued = [];\n\n    var commandStr = (command) ? command.get('rawStr') : '';\n    if (!this.testOptionOnString(commandStr, 'forSolution')) {\n      this.isShowingSolution = false;\n    }","sourceCodeStart":601,"sourceCodeEnd":637,"githubUrl":"https://github.com/pcottle/learnGitBranching/blob/5b09d0ff9678cad164f5a7488a279a44f90d7256/src/js/level/index.js#L601-L637","documentation":"Thrown by Level.getInstantCommands in level/index.js when 'help' or '?' is typed during a normal level. Regular levels do not have a per-level command list to show, so a vague localized hint (help-vague-level) is returned as a CommandResult pointing the user at the goal and the 'hint' command.","triggerScenarios":"Entering 'help' or '?' while a standard (non-builder) level is active; the instant regex matches before command parsing, and 'hint' similarly returns getHint().","commonSituations":"New users looking for command documentation mid-level; expected informational output.","solutions":["No fix needed — intended output","Run 'hint' for a level-specific clue","Consult the goal panel or the app's command reference for full documentation"],"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 actionable guidance in regular levels"],"tags":["help","level","command-result","hint"],"backgroundTag":"help-command-output","analyzedSha":"5b09d0ff9678cad164f5a7488a279a44f90d7256","analyzedAt":"2026-08-27T13:53:49.057Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}