Hotfix missing variable declaration in music plugin

This commit is contained in:
linguist
2020-12-28 01:25:40 +01:00
parent 5c8fa3a6f6
commit 8135bf19a6
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -148,7 +148,7 @@
if (error.isAxiosError) { if (error.isAxiosError) {
const status = error.response?.status const status = error.response?.status
const description = error.response.data?.error_description ?? null const description = error.response.data?.error_description ?? null
message = `API returned ${status}${description ? ` (${description})` : ""}` const message = `API returned ${status}${description ? ` (${description})` : ""}`
error = error.response?.data ?? null error = error.response?.data ?? null
throw {error:{message, instance:error}, ...raw} throw {error:{message, instance:error}, ...raw}
} }