File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export async function configureAccess(werft: Werft) {
90
90
try {
91
91
await installPreviewCTL ( )
92
92
} catch ( e ) {
93
- throw new Error ( "Failed to install Previewctl" )
93
+ werft . fail ( SLICES . INSTALL_PREVIEWCTL , e )
94
94
}
95
95
96
96
try {
@@ -123,10 +123,10 @@ export async function configureAccess(werft: Werft) {
123
123
export async function installPreviewCTL ( ) {
124
124
try {
125
125
await execStream ( `leeway run dev/preview/previewctl:install` , {
126
- slice : "Install previewctl" ,
126
+ slice : SLICES . INSTALL_PREVIEWCTL ,
127
127
} )
128
128
} catch ( e ) {
129
- throw new Error ( " Failed to install previewctl." ) ;
129
+ throw new Error ( ` Failed to install previewctl: ${ e } ` ) ;
130
130
}
131
131
}
132
132
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export async function destroyPreview(options: { name: string }) {
16
16
{ slice : "Deleting VM." } )
17
17
} catch ( err ) {
18
18
werft . currentPhaseSpan . setAttribute ( "preview.deleted_vm" , false ) ;
19
- werft . fail ( "Deleting VM." , new Error ( `Failed creating VM: ${ err } ` ) )
19
+ werft . fail ( "Deleting VM." , new Error ( `Failed deleting VM: ${ err } ` ) )
20
20
return ;
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments