Skip to content

Commit 9b22c85

Browse files
authored
Honor GitHub brand name casing (microsoft#208503)
1 parent b0d975f commit 9b22c85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/src/auth.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Display for AuthProvider {
6060
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6161
match self {
6262
AuthProvider::Microsoft => write!(f, "Microsoft Account"),
63-
AuthProvider::Github => write!(f, "Github Account"),
63+
AuthProvider::Github => write!(f, "GitHub Account"),
6464
}
6565
}
6666
}
@@ -144,7 +144,7 @@ impl StoredCredential {
144144
let res = match res {
145145
Ok(r) => r,
146146
Err(e) => {
147-
warning!(log, "failed to check Github token: {}", e);
147+
warning!(log, "failed to check GitHub token: {}", e);
148148
return false;
149149
}
150150
};
@@ -154,7 +154,7 @@ impl StoredCredential {
154154
}
155155

156156
let err = StatusError::from_res(res).await;
157-
debug!(log, "github token looks expired: {:?}", err);
157+
debug!(log, "GitHub token looks expired: {:?}", err);
158158
true
159159
}
160160
}
@@ -678,7 +678,7 @@ impl Auth {
678678
if !*IS_INTERACTIVE_CLI {
679679
info!(
680680
self.log,
681-
"Using Github for authentication, run `{} tunnel user login --provider <provider>` option to change this.",
681+
"Using GitHub for authentication, run `{} tunnel user login --provider <provider>` option to change this.",
682682
APPLICATION_NAME
683683
);
684684
return Ok(AuthProvider::Github);

0 commit comments

Comments
 (0)