mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
style: deno fmt
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
import { RestRequestRejection } from "./rest.ts";
|
||||
|
||||
export function convertRestError(errorStack: Error, data: RestRequestRejection): Error {
|
||||
errorStack.message = `[${data.status}] ${data.error}`;
|
||||
return errorStack;
|
||||
}
|
||||
errorStack.message = `[${data.status}] ${data.error}`;
|
||||
return errorStack;
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import { processRequestHeaders } from "./processRequestHeaders.ts";
|
||||
import { runMethod } from "./runMethod.ts";
|
||||
import { runProxyMethod } from "./runProxyMethod.ts";
|
||||
import { simplifyUrl } from "./simplifyUrl.ts";
|
||||
import { convertRestError } from "./convertRestError.ts"
|
||||
import { convertRestError } from "./convertRestError.ts";
|
||||
|
||||
export const rest = {
|
||||
/** The bot token for this rest client. */
|
||||
|
||||
Reference in New Issue
Block a user