mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-16 01:31:19 +10:00
feat: partial user platform support + statusMessage -> message
This commit is contained in:
@ -192,7 +192,7 @@ async function authorize() {
|
||||
}
|
||||
throw createError({
|
||||
statusCode: 500,
|
||||
statusMessage: "Unknown client auth mode: " + clientData.mode,
|
||||
message: "Unknown client auth mode: " + clientData.mode,
|
||||
fatal: true,
|
||||
});
|
||||
}
|
||||
@ -202,7 +202,7 @@ async function authorize_wrapper() {
|
||||
await authorize();
|
||||
} catch (e) {
|
||||
const errorMessage =
|
||||
(e as FetchError)?.statusMessage || "An unknown error occurred.";
|
||||
(e as FetchError)?.message || "An unknown error occurred.";
|
||||
error.value = errorMessage;
|
||||
} finally {
|
||||
completed.value = true;
|
||||
|
||||
@ -125,7 +125,7 @@ async function complete(code: string) {
|
||||
} catch (e) {
|
||||
if (e instanceof FetchError) {
|
||||
error.value =
|
||||
e.statusMessage ?? e.message ?? "An unknown error occurred.";
|
||||
e.message ?? "An unknown error occurred.";
|
||||
} else {
|
||||
error.value = (e as string)?.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user