mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
7 lines
232 B
TypeScript
7 lines
232 B
TypeScript
import { RestRequestRejection } from './rest.js'
|
|
|
|
export function convertRestError (errorStack: Error, data: RestRequestRejection): Error {
|
|
errorStack.message = `[${data.status}] ${data.error}\n${data.body}`
|
|
return errorStack
|
|
}
|