diff --git a/src/client/client.rs b/src/client/client.rs index 6773ffd..1264f26 100644 --- a/src/client/client.rs +++ b/src/client/client.rs @@ -460,9 +460,9 @@ impl PackagesClient { .x_oauth_scopes .clone() .unwrap() - .contains("write:packages") + .contains("delete:packages") { - eprintln!("The token does not have the scopes needed. Tokens need `write:packages`. The scopes found were {}.", response_headers.x_oauth_scopes.unwrap_or("none".to_string())); + eprintln!("The token does not have the scopes needed. Tokens need `delete:packages`. The scopes found were {}.", response_headers.x_oauth_scopes.unwrap_or("none".to_string())); exit(1); } }