Skip to content

Commit 2a2f285

Browse files
authored
Fix LogError argument order in WebAssemblyErrorBoundaryLogger (#39223)
1 parent de86e24 commit 2a2f285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyErrorBoundaryLogger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ internal sealed class WebAssemblyErrorBoundaryLogger : IErrorBoundaryLogger
1212

1313
public WebAssemblyErrorBoundaryLogger(ILogger<ErrorBoundary> errorBoundaryLogger)
1414
{
15-
_errorBoundaryLogger = errorBoundaryLogger ?? throw new ArgumentNullException(nameof(errorBoundaryLogger)); ;
15+
_errorBoundaryLogger = errorBoundaryLogger ?? throw new ArgumentNullException(nameof(errorBoundaryLogger));
1616
}
1717

1818
public ValueTask LogErrorAsync(Exception exception)
1919
{
2020
// For, client-side code, all internal state is visible to the end user. We can just
2121
// log directly to the console.
22-
_errorBoundaryLogger.LogError(exception.ToString(), exception);
22+
_errorBoundaryLogger.LogError(exception, exception.ToString());
2323
return ValueTask.CompletedTask;
2424
}
2525
}

0 commit comments

Comments
 (0)