{"record":{"id":"b2557a03e9a14757","repo":"oven-sh/bun","slug":"could-not-read-file-s","errorCode":null,"errorMessage":"Could not read file %s\n","messagePattern":"Could not read file (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"misctools/cold-jsc-start.cpp","lineNumber":190,"sourceCode":"        JSC::profiledEvaluate(globalObject, ProfilingReason::API, source,\n                              globalObject, evaluationException);\n\n#ifdef VERBOSE\n    fprintf(stderr, \"eval took %f ms\\n\",\n            stopwatch->elapsedTime().milliseconds());\n    stopwatch->reset();\n#endif\n\n    if (evaluationException) {\n      fprintf(\n          stderr, \"Exception: %s\\n\",\n          evaluationException->value().toWTFString(globalObject).utf8().data());\n      return 1;\n    } else {\n      return 0;\n    }\n  } else {\n    fprintf(stderr, \"Could not read file %s\\n\", argv[argc - 1]);\n    return 1;\n  }\n}\n","sourceCodeStart":172,"sourceCodeEnd":194,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/misctools/cold-jsc-start.cpp#L172-L194","documentation":"Emitted when cold-jsc-start could not load the JavaScript file given as the last argv entry before evaluating it. It means the path is unreadable, missing, or the read failed, so no evaluation/startup measurement is performed and the tool exits 1.","triggerScenarios":"Thrown at misctools/cold-jsc-start.cpp:190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file path exists and is readable","Check the path is a regular file, not a directory"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}