summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 19:42:26 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 19:42:26 +0200
commite05e4c5995db3ad126bedeb58f12ce464fc158ef (patch)
tree2467004eeeaa46604eb9e2e70a9b77a2170e9c6d
parent:pencil2: typo (diff)
downloadserver-e05e4c5995db3ad126bedeb58f12ce464fc158ef.tar.xz
:pencil: better error message if you upload icon
-rw-r--r--src/util/cdn.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/cdn.ts b/src/util/cdn.ts

index 30b946ea..aed8ca0a 100644 --- a/src/util/cdn.ts +++ b/src/util/cdn.ts
@@ -35,6 +35,6 @@ export async function handleFile(path: string, body?: string): Promise<string | return id; } catch (error) { console.error(error); - throw new HTTPError("Invalid file"); + throw new HTTPError("Invalid " + path); } }