Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/uenv/oras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct oras_output {
};

constexpr auto generic_error_message =
"unknown error - rerun with the -vvv flag and send an error report to the "
"unknown error - rerun with the -vv flag and send an error report to the "
"CSCS service desk.";

error generic_error(std::string err) {
Expand Down Expand Up @@ -76,6 +76,13 @@ error create_error(const oras_output& result) {
return {403, result.stderr,
"Invalid username was provided. Check the --username flag."};
}
if (contains(err, "Token failed verification: revoked") &&
contains(err, "Error response from registry")) {
return {403, result.stderr,
"The registry token has been revoked. Create a new token, and "
"either pass it as an input file, or update the entry in "
"~/.docker/config.json."};
}
if (contains(err, "unauthorized") &&
contains(err, "Error response from registry")) {
return {403, result.stderr,
Expand Down