@@ -95,7 +95,9 @@ import { ContextURL } from "@gitpod/gitpod-protocol/lib/context-url";
95
95
import {
96
96
Prebuild ,
97
97
PrebuildStatus ,
98
- PrebuildPhase , PrebuildPhase_Phase } from "@gitpod/public-api/lib/gitpod/v1/prebuild_pb" ;
98
+ PrebuildPhase ,
99
+ PrebuildPhase_Phase ,
100
+ } from "@gitpod/public-api/lib/gitpod/v1/prebuild_pb" ;
99
101
import { ApplicationError , ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error" ;
100
102
import { InvalidGitpodYMLError , RepositoryNotFoundError , UnauthorizedRepositoryAccessError } from "./public-api-errors" ;
101
103
import {
@@ -594,6 +596,9 @@ export class PublicAPIConverter {
594
596
if ( reason . code === ErrorCodes . PERMISSION_DENIED ) {
595
597
return new ConnectError ( reason . message , Code . PermissionDenied , undefined , undefined , reason ) ;
596
598
}
599
+ if ( reason . code === ErrorCodes . UNIMPLEMENTED ) {
600
+ return new ConnectError ( reason . message , Code . Unimplemented , undefined , undefined , reason ) ;
601
+ }
597
602
if ( reason . code === ErrorCodes . CONFLICT ) {
598
603
return new ConnectError ( reason . message , Code . AlreadyExists , undefined , undefined , reason ) ;
599
604
}
@@ -669,6 +674,9 @@ export class PublicAPIConverter {
669
674
}
670
675
return new ApplicationError ( ErrorCodes . PRECONDITION_FAILED , reason . rawMessage ) ;
671
676
}
677
+ if ( reason . code === Code . Unimplemented ) {
678
+ return new ApplicationError ( ErrorCodes . UNIMPLEMENTED , reason . rawMessage ) ;
679
+ }
672
680
if ( reason . code === Code . ResourceExhausted ) {
673
681
return new ApplicationError ( ErrorCodes . TOO_MANY_REQUESTS , reason . rawMessage ) ;
674
682
}
@@ -1139,7 +1147,7 @@ export class PublicAPIConverter {
1139
1147
return PrebuildPhase_Phase . UNSPECIFIED ;
1140
1148
}
1141
1149
1142
- fromPrebuildPhase ( status : PrebuildPhase_Phase ) : PrebuiltWorkspaceState | undefined {
1150
+ fromPrebuildPhase ( status : PrebuildPhase_Phase ) : PrebuiltWorkspaceState | undefined {
1143
1151
switch ( status ) {
1144
1152
case PrebuildPhase_Phase . QUEUED :
1145
1153
return "queued" ;
0 commit comments