oven-sh/bun · error
Read failed: ${absolutePath}
Error message
Read failed: ${absolutePath} What it means
Error "Read failed: ${absolutePath}" thrown in oven-sh/bun.
Source
Thrown at scripts/utils.mjs:932
* @param {object} [options]
* @param {boolean} [options.cache]
* @returns {string}
*/
export function readFile(filename, options = {}) {
const absolutePath = resolve(filename);
if (options["cache"]) {
if (cachedFiles?.[absolutePath]) {
return cachedFiles[absolutePath];
}
}
debugLog("$", "cat", absolutePath);
let content;
try {
content = readFileSync(absolutePath, "utf-8");
} catch (cause) {
throw new Error(`Read failed: ${absolutePath}`, { cause });
}
if (options["cache"]) {
cachedFiles ||= {};
cachedFiles[absolutePath] = content;
}
return content;
}
/**
* @param {string} path
* @param {number} mode
*/
export function chmod(path, mode) {
debugLog("$", "chmod", path, mode);
chmodSync(path, mode);
}View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at scripts/utils.mjs:932 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/a2293add60c0f32b.
Report an issue: GitHub.