File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ function submitTask(request: BlueApiRequestBody): Promise<string | void> {
8080 } ) . then ( ( res ) => {
8181 if ( ! res . ok ) {
8282 throw new Error (
83- `Unable to POST request, response error ${ res . statusText } `
83+ `Unable to POST request, response error ${ res . status } ${ res . statusText } `
8484 ) ;
8585 }
8686 res . json ( ) . then ( ( res ) => res [ "task_id" ] ) ;
@@ -90,7 +90,9 @@ function submitTask(request: BlueApiRequestBody): Promise<string | void> {
9090function runTask ( taskId : string ) : Promise < string | void > {
9191 return blueApiCall ( "/worker/task" , "PUT" , { task_id : taskId } ) . then ( ( res ) => {
9292 if ( ! res . ok ) {
93- throw new Error ( `Unable to run task, response error ${ res . statusText } ` ) ;
93+ throw new Error (
94+ `Unable to run task, response error ${ res . status } ${ res . statusText } `
95+ ) ;
9496 }
9597 res . json ( ) . then ( ( res ) => res [ "task_id" ] ) ;
9698 } ) ;
@@ -105,7 +107,7 @@ export function submitAndRunPlanImmediately(
105107 runTask ( res ) ;
106108 }
107109 } )
108- . catch ( ( error ) => console . log ( error ) ) ;
110+ . catch ( ( error ) => console . log ( `NOPE ${ error } ` ) ) ;
109111}
110112
111113export function abortCurrentPlan ( ) : Promise < BlueApiWorkerState > {
You can’t perform that action at this time.
0 commit comments