Skip to content

Commit 0673348

Browse files
committed
tweak: Improve error message for unsupported backup kind when using starred + releases
1 parent b076dac commit 0673348

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sources/github_releases.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ impl BackupSource<HttpFile> for GitHubReleasesSource {
103103
match target {
104104
GitHubRepoSourceKind::Starred => Err(errors::user(
105105
&format!(
106-
"Your 'from' target '{}' is not valid for 'kind' '{}'.",
106+
"You cannot use 'from: {}' for backups of 'kind: {}' as it is not currently supported.",
107107
policy.from.as_str(),
108108
policy.kind.as_str()
109109
),
110-
"You cannot use starred to backup releases.",
110+
"Try using 'from: user' or one of the other supported sources (users/<user>, orgs/<org>, repos/<repo>, etc).",
111111
)),
112112
_ => Ok(()),
113113
}

0 commit comments

Comments
 (0)