Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 7f258ed

Browse files
committed
Remove '[PAT]' from error messages
1 parent 7e8636c commit 7f258ed

File tree

1 file changed

+4
-4
lines changed
  • src/ApiService/ApiService/onefuzzlib/notifications

1 file changed

+4
-4
lines changed

src/ApiService/ApiService/onefuzzlib/notifications/Ado.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,22 @@ await policy.ExecuteAsync(async () => {
127127
});
128128
} catch (HttpRequestException e) {
129129
return OneFuzzResultVoid.Error(ErrorCode.ADO_VALIDATION_UNEXPECTED_HTTP_EXCEPTION, new string[] {
130-
$"[PAT] Failed to connect to {config.BaseUrl} due to an HttpRequestException",
130+
$"Failed to connect to {config.BaseUrl} due to an HttpRequestException",
131131
$"Exception: {e}"
132132
});
133133
} catch (VssUnauthorizedException e) {
134134
return OneFuzzResultVoid.Error(ErrorCode.ADO_VALIDATION_INVALID_PAT, new string[] {
135-
$"[PAT] Failed to connect to {config.BaseUrl} using the provided token",
135+
$"Failed to connect to {config.BaseUrl} using the provided token",
136136
$"Exception: {e}"
137137
});
138138
} catch (VssAuthenticationException e) {
139139
return OneFuzzResultVoid.Error(ErrorCode.ADO_VALIDATION_INVALID_PAT, new string[] {
140-
$"[PAT] Failed to connect to {config.BaseUrl} using the provided token",
140+
$"Failed to connect to {config.BaseUrl} using the provided token",
141141
$"Exception: {e}"
142142
});
143143
} catch (Exception e) {
144144
return OneFuzzResultVoid.Error(ErrorCode.ADO_VALIDATION_UNEXPECTED_ERROR, new string[] {
145-
$"[PAT] Unexpected failure when connecting to {config.BaseUrl}",
145+
$"Unexpected failure when connecting to {config.BaseUrl}",
146146
$"Exception: {e}"
147147
});
148148
}

0 commit comments

Comments
 (0)