{"record":{"id":"9edbb97c68129bb1","repo":"warpdotdev/warp","slug":"error","errorCode":null,"errorMessage":"{}: {}: {}","messagePattern":"\\{\\}: \\{\\}: \\{\\}","errorType":"exception","errorClass":"UnexpectedError","httpStatus":null,"severity":"error","filePath":"script/run-clang-format.py","lineNumber":123,"sourceCode":"        super(DiffError, self).__init__(message)\n        self.errs = errs or []\n\n\nclass UnexpectedError(Exception):\n    def __init__(self, message, exc=None):\n        super(UnexpectedError, self).__init__(message)\n        self.formatted_traceback = traceback.format_exc()\n        self.exc = exc\n\n\ndef run_clang_format_diff_wrapper(args, file):\n    try:\n        ret = run_clang_format_diff(args, file)\n        return ret\n    except DiffError:\n        raise\n    except Exception as e:\n        raise UnexpectedError('{}: {}: {}'.format(file, e.__class__.__name__,\n                                                  e), e)\n\n\ndef run_clang_format_diff(args, file):\n    try:\n        with io.open(file, 'r', encoding='utf-8') as f:\n            original = f.readlines()\n    except IOError as exc:\n        raise DiffError(str(exc))\n    \n    if args.in_place:\n        invocation = [args.clang_format_executable, '-i', file]\n    else:\n        invocation = [args.clang_format_executable, file]\n\n    if args.style:\n        invocation.extend(['--style', args.style])\n","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/script/run-clang-format.py#L105-L141","documentation":"Error \"{}: {}: {}\" thrown in warpdotdev/warp.","triggerScenarios":"Thrown at script/run-clang-format.py:123 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":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}