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