mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
7 lines
238 B
TypeScript
7 lines
238 B
TypeScript
import { RestRequestRejection } from "./rest.ts";
|
|
|
|
export function convertRestError(errorStack: Error, data: RestRequestRejection): Error {
|
|
errorStack.message = `[${data.status}] ${data.error}\n${data.body}`;
|
|
return errorStack;
|
|
}
|