The open source coding agent.
TypeScript
fix failing migration
Dax Raad06fe87b361a3
diff --git a/packages/opencode/src/storage/storage.ts b/packages/opencode/src/storage/storage.tsindex e54fcd44699..9eb0f8f5156 100644--- a/packages/opencode/src/storage/storage.ts+++ b/packages/opencode/src/storage/storage.ts@@ -23,6 +23,7 @@ export namespace Storage {const MIGRATIONS: Migration[] = [async (dir) => {const project = path.resolve(dir, "../project")+ if (!fs.exists(project)) returnfor await (const projectDir of new Bun.Glob("*").scan({cwd: project,onlyFiles: false,@@ -177,8 +178,7 @@ export namespace Storage {async function withErrorHandling<T>(body: () => Promise<T>) {return body().catch((e) => {- if (!(e instanceof Error))- throw e+ if (!(e instanceof Error)) throw econst errnoException = e as NodeJS.ErrnoExceptionif (errnoException.code === "ENOENT") {throw new NotFoundError({ message: `Resource not found: ${errnoException.path}` })