mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
7 lines
220 B
TypeScript
7 lines
220 B
TypeScript
import { RestRequestRejection } from "./rest.ts";
|
|
|
|
export function convertRestError(errorStack: Error, data: RestRequestRejection): Error {
|
|
errorStack.message = `[${data.status}] ${data.error}`;
|
|
return errorStack;
|
|
}
|