Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Oct 31, 2024
1 parent 3817ecf commit 28678a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Ui.GraphiQL/Internal/graphiql.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,7 @@
if (err instanceof Error) {
throwMe = err;
} else if (err instanceof CloseEvent) {
throwMe = new Error(
`Socket closed with event ${err.code} ${
err.reason || ""
}`.trim()
);
throwMe = new Error(`Socket closed with event ${err.code} ${err.reason || ""}`.trim());
} else {
// GraphQLError[]
throwMe = new Error(err.map(({ message }) => message).join(", "));
Expand Down

0 comments on commit 28678a2

Please sign in to comment.