Skip to content

Commit ae78ebb

Browse files
committed
Reduce error verbosity
1 parent 183bb94 commit ae78ebb

File tree

2 files changed

+2
-2
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages

2 files changed

+2
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Login.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
{
102102
if (!string.IsNullOrEmpty(Input.Passkey?.Error))
103103
{
104-
errorMessage = $"Error: Could not log in using the provided passkey: {Input.Passkey.Error}";
104+
errorMessage = $"Error: {Input.Passkey.Error}";
105105
return;
106106
}
107107

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Manage/Passkeys.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ else
9090

9191
if (!string.IsNullOrEmpty(Input.Error))
9292
{
93-
RedirectManager.RedirectToCurrentPageWithStatus($"Error: Could not add a passkey: {Input.Error}", HttpContext);
93+
RedirectManager.RedirectToCurrentPageWithStatus($"Error: {Input.Error}", HttpContext);
9494
return;
9595
}
9696

0 commit comments

Comments
 (0)