File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/opencode/src/storage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export namespace Storage {
2323 const MIGRATIONS : Migration [ ] = [
2424 async ( dir ) => {
2525 const project = path . resolve ( dir , "../project" )
26+ if ( ! fs . exists ( project ) ) return
2627 for await ( const projectDir of new Bun . Glob ( "*" ) . scan ( {
2728 cwd : project ,
2829 onlyFiles : false ,
@@ -177,8 +178,7 @@ export namespace Storage {
177178
178179 async function withErrorHandling < T > ( body : ( ) => Promise < T > ) {
179180 return body ( ) . catch ( ( e ) => {
180- if ( ! ( e instanceof Error ) )
181- throw e
181+ if ( ! ( e instanceof Error ) ) throw e
182182 const errnoException = e as NodeJS . ErrnoException
183183 if ( errnoException . code === "ENOENT" ) {
184184 throw new NotFoundError ( { message : `Resource not found: ${ errnoException . path } ` } )
You can’t perform that action at this time.
0 commit comments