diff options
author | bobzel <zzzman@gmail.com> | 2024-08-20 21:30:32 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-20 21:30:32 -0400 |
commit | cdb21e036ff65d63991a53798133407be1d5755f (patch) | |
tree | 6df221d6855aea45fb7e63870b2e56c1a880b267 /src/client/documents/DocUtils.ts | |
parent | 5196009ec6bcb673fd2a4519c54442df218841f7 (diff) |
fixed error handling of images too big to load. cleaned up facecollectionbox. changed metadata field naming to match conventions.
Diffstat (limited to 'src/client/documents/DocUtils.ts')
-rw-r--r-- | src/client/documents/DocUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/DocUtils.ts b/src/client/documents/DocUtils.ts index a503d732b..35d835f1f 100644 --- a/src/client/documents/DocUtils.ts +++ b/src/client/documents/DocUtils.ts @@ -739,7 +739,7 @@ export namespace DocUtils { const { source: { newFilename, mimetype }, result, - } = upfiles.lastElement() ?? { source: { newFilename: '', mimetype: '' }, result: { message: 'upload failed' } }; + } = upfiles.lastElement() ?? { source: { newFilename: '', mimetype: '' }, result: new Error('upload failed') }; if (result instanceof Error) { if (overwriteDoc) { overwriteDoc.loadingError = result.message; |