{"record":{"id":"7d9925453e73feb5","repo":"warpdotdev/warp","slug":"command-returned-non-zero-exit-status","errorCode":null,"errorMessage":"Command '{}' returned non-zero exit status {}","messagePattern":"Command '(.+?)' returned non-zero exit status (.+?)","errorType":"exception","errorClass":"DiffError","httpStatus":null,"severity":"error","filePath":"script/run-clang-format.py","lineNumber":194,"sourceCode":"        raise DiffError(\n            \"Command '{}' failed to start: {}\".format(\n                subprocess.list2cmdline(invocation), exc\n            )\n        )\n    proc_stdout = proc.stdout\n    proc_stderr = proc.stderr\n    if sys.version_info[0] < 3:\n        # make the pipes compatible with Python 3,\n        # reading lines should output unicode\n        encoding = 'utf-8'\n        proc_stdout = codecs.getreader(encoding)(proc_stdout)\n        proc_stderr = codecs.getreader(encoding)(proc_stderr)\n    # hopefully the stderr pipe won't get full and block the process\n    outs = list(proc_stdout.readlines())\n    errs = list(proc_stderr.readlines())\n    proc.wait()\n    if proc.returncode:\n        raise DiffError(\n            \"Command '{}' returned non-zero exit status {}\".format(\n                subprocess.list2cmdline(invocation), proc.returncode\n            ),\n            errs,\n        )\n    if args.in_place:\n        return [], errs\n    return make_diff(file, original, outs), errs\n\n\ndef bold_red(s):\n    return '\\x1b[1m\\x1b[31m' + s + '\\x1b[0m'\n\n\ndef colorize(diff_lines):\n    def bold(s):\n        return '\\x1b[1m' + s + '\\x1b[0m'\n","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/script/run-clang-format.py#L176-L212","documentation":"Error \"Command '{}' returned non-zero exit status {}\" thrown in warpdotdev/warp.","triggerScenarios":"Thrown at script/run-clang-format.py:194 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"}