File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -277,8 +277,17 @@ export async function deploy(
277
277
try {
278
278
deployId = await apiClient . postDeploy ( { projectId : deployTarget . project . id , message} ) ;
279
279
} catch ( error ) {
280
- if ( isHttpError ( error ) && ( error . statusCode === 404 || error . statusCode === 403 ) ) {
281
- throw new CliError ( "Deploy failed. Please check your deploy configuration." , { cause : error } ) ;
280
+ if ( isHttpError ( error ) ) {
281
+ if ( error . statusCode === 404 ) {
282
+ throw new CliError ( `Project @${ deployTarget . workspace . login } /${ deployTarget . project . slug } not found.` , {
283
+ cause : error
284
+ } ) ;
285
+ } else if ( error . statusCode === 403 ) {
286
+ throw new CliError (
287
+ `You don't have permission to deploy to @${ deployTarget . workspace . login } /${ deployTarget . project . slug } .` ,
288
+ { cause : error }
289
+ ) ;
290
+ }
282
291
}
283
292
throw error ;
284
293
}
You can’t perform that action at this time.
0 commit comments