{"record":{"id":"ecc6a7e6c7c099ae","repo":"chubin/cheat.sh","slug":"s","errorCode":null,"errorMessage":"%s","messagePattern":"%s","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/globals.py","lineNumber":30,"sourceCode":"\ndef fatal(text):\n    \"\"\"\n    Fatal error function.\n\n    The function is being used in the standalone mode only\n    \"\"\"\n    sys.stderr.write(\"ERROR: %s\\n\" % text)\n    sys.exit(1)\n\n\ndef error(text):\n    \"\"\"\n    Log error `text` and produce a RuntimeError exception\n    \"\"\"\n    if not text.startswith(\"Too many queries\"):\n        print(text)\n    logging.error(\"ERROR %s\", text)\n    raise RuntimeError(text)\n\n\ndef log(text):\n    \"\"\"\n    Log error `text` (if it does not start with 'Too many queries')\n    \"\"\"\n    if not text.startswith(\"Too many queries\"):\n        print(text)\n        logging.info(text)\n","sourceCodeStart":12,"sourceCodeEnd":40,"githubUrl":"https://github.com/chubin/cheat.sh/blob/031a5d3887f035aaa3bf1a3f83dff4fde2aac53d/lib/globals.py#L12-L40","documentation":"Error \"%s\" thrown in chubin/cheat.sh.","triggerScenarios":"Thrown at lib/globals.py:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"031a5d3887f035aaa3bf1a3f83dff4fde2aac53d","analyzedAt":"2026-08-26T16:49:57.415Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}