Skip to content

Commit

Permalink
Fix errorConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
5jiji committed Oct 28, 2023
1 parent e43dbf2 commit a59bec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/errorConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function errorToEmbed(error: unknown, description: string): APIEmbed {
inline: true
}, {
name: "From",
value: `${error.stack}`,
value: `${typeof error.stack === "string" ? error.stack.slice(0, 1024) : error.stack}`,
inline: true
}])
}
Expand Down

0 comments on commit a59bec3

Please sign in to comment.