Skip to content

Commit

Permalink
Catch OOM exception when uploading a file
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed May 1, 2024
1 parent 61099a4 commit 5f65c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotnetEventViewer/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
catch (Exception e)
{
Console.Error.WriteLine(e);
ShowFileError(e is JSException
ShowFileError(e is JSException or OutOfMemoryException
? "File is too large to fit in memory"
: "Invalid nettrace file");
return;
Expand Down

0 comments on commit 5f65c5e

Please sign in to comment.