@@ -252,7 +252,10 @@ async function buildSnapshot(
252252 const spinner = new Spinner ( { color : "yellow" } ) ;
253253
254254 // Runs a shell command inside the sandbox and returns whether it succeeded
255- async function runInSandbox ( sandbox : Sandbox , command : string ) : Promise < boolean > {
255+ async function runInSandbox (
256+ sandbox : Sandbox ,
257+ command : string ,
258+ ) : Promise < boolean > {
256259 const child = await sandbox . spawn ( "bash" , {
257260 args : [ "-c" , command ] ,
258261 stdout : out ,
@@ -303,8 +306,8 @@ async function buildSnapshot(
303306 spinner . stop ( ) ;
304307 throw new Error (
305308 `Failed to boot sandbox: ${ e } \n` +
306- ` Volume '${ volumeSlug } ' was created but is now unused.\n` +
307- ` You can delete it with: deno sandbox volumes delete ${ volumeSlug } ` ,
309+ ` Volume '${ volumeSlug } ' was created but is now unused.\n` +
310+ ` You can delete it with: deno sandbox volumes delete ${ volumeSlug } ` ,
308311 ) ;
309312 }
310313 spinner . stop ( ) ;
@@ -363,7 +366,7 @@ async function buildSnapshot(
363366 console . log ( ) ;
364367 console . log (
365368 `${ yellow ( "⚠" ) } ${ failedCommands . length } setup command(s) failed. ` +
366- "The snapshot will be incomplete." ,
369+ "The snapshot will be incomplete." ,
367370 ) ;
368371 }
369372 } finally {
@@ -388,7 +391,9 @@ async function buildSnapshot(
388391 ] ) ;
389392 } catch ( closedError ) {
390393 console . log (
391- `${ yellow ( "⚠" ) } Could not confirm sandbox termination: ${ closedError } ` ,
394+ `${
395+ yellow ( "⚠" )
396+ } Could not confirm sandbox termination: ${ closedError } `,
392397 ) ;
393398 console . log (
394399 " The sandbox may still be running. Check your dashboard." ,
@@ -433,8 +438,8 @@ async function buildSnapshot(
433438 } else {
434439 throw new Error (
435440 `Snapshot creation failed after ${ maxAttempts } attempts: ${ e } \n` +
436- ` The volume '${ volumeSlug } ' still exists. You can try manually:\n` +
437- ` deno sandbox volumes snapshot ${ volumeSlug } ${ options . snapshotSlug } ` ,
441+ ` The volume '${ volumeSlug } ' still exists. You can try manually:\n` +
442+ ` deno sandbox volumes snapshot ${ volumeSlug } ${ options . snapshotSlug } ` ,
438443 ) ;
439444 }
440445 }
0 commit comments