@@ -36,15 +36,12 @@ export const applyManifest = async () => {
3636 } ) ;
3737
3838 if ( createError ) {
39- // Handle specific error types with custom messages
4039 if ( createError instanceof ConnectError ) {
4140 const errorType = getFirstMetadataValue ( createError , "x-error-type" ) ;
4241
43- // Don't show error for AlreadyExists - it's handled silently
4442 if ( createError . code === Code . AlreadyExists ) {
4543 // Project already exists, continue to apply manifest
4644 } else if ( errorType === "quota_limit_exceeded" ) {
47- // Show quota exceeded error with details
4845 const quotaLimit = getFirstMetadataValue ( createError , "x-quota-limit" ) ;
4946 const quotaLimitUsed = getFirstMetadataValue ( createError , "x-quota-used" ) ;
5047 const quotaLimitResource = getFirstMetadataValue ( createError , "x-quota-resource" ) ;
@@ -60,26 +57,21 @@ export const applyManifest = async () => {
6057 ) ;
6158 return ;
6259 } else if ( errorType === "rate_limit_exceeded" ) {
63- // Show rate limit error
6460 commands . executeCommand ( vsCommands . showErrorMessage , translate ( ) . t ( "errors.rateLimitExceeded" ) ) ;
6561 return ;
6662 } else if ( createError . code === Code . ResourceExhausted ) {
67- // Generic resource exhausted error
6863 commands . executeCommand (
6964 vsCommands . showErrorMessage ,
7065 translate ( ) . t ( "errors.resourceExhausted" , { email : SUPPORT_EMAIL } )
7166 ) ;
7267 return ;
7368 } else if ( createError . code === Code . Unauthenticated ) {
74- // Show auth error
7569 commands . executeCommand ( vsCommands . showErrorMessage , translate ( ) . t ( "errors.unauthenticated" ) ) ;
7670 return ;
7771 } else if ( createError . code === Code . PermissionDenied ) {
78- // Show permission error
7972 commands . executeCommand ( vsCommands . showErrorMessage , translate ( ) . t ( "errors.permissionDenied" ) ) ;
8073 return ;
8174 } else {
82- // Show generic error
8375 commands . executeCommand ( vsCommands . showErrorMessage , namespaces . applyManifest , createError . message ) ;
8476 return ;
8577 }
0 commit comments