Skip to content

Commit 14e993c

Browse files
sjinksCopilot
andauthored
fix: apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 436da11 commit 14e993c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib/dev-environment/dev-environment-core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,8 @@ async function isVersionListExpired( cacheFile: string, ttl: number ): Promise<
968968
expire.setSeconds( expire.getSeconds() + ttl );
969969

970970
return Number( new Date() ) > Number( expire );
971-
} catch {
971+
} catch ( error ) {
972+
debug( `Error checking version list expiration for cache file ${ cacheFile }:`, error );
972973
return true;
973974
}
974975
}

src/lib/dev-environment/dev-environment-lando.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ async function regenerateLandofile( lando: Lando, instancePath: string ): Promis
121121
const backup = `${ landoFile }.${ now }`;
122122
await rename( landoFile, backup );
123123
console.warn( chalk.yellow( 'Backed up %s to %s' ), landoFile, backup );
124-
} catch {
124+
} catch ( error ) {
125+
debug( `Failed to backup lando file ${ landoFile }:`, error );
125126
// Rename failed - possibly the file does not exist. Silently ignoring.
126127
}
127128

0 commit comments

Comments
 (0)