mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 00:31:25 +10:00
feat: partial user platform support + statusMessage -> message
This commit is contained in:
@ -26,7 +26,7 @@ export default defineEventHandler<{ body: typeof UpdateLibrarySource.infer }>(
|
||||
if (!source)
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
statusMessage: "Library source not found",
|
||||
message: "Library source not found",
|
||||
});
|
||||
|
||||
const constructor = libraryConstructors[source.backend];
|
||||
@ -61,7 +61,7 @@ export default defineEventHandler<{ body: typeof UpdateLibrarySource.infer }>(
|
||||
} catch (e) {
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
statusMessage: `Failed to create source: ${e}`,
|
||||
message: `Failed to create source: ${e}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user