mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-08-07 21:18:40 +02:00
Fix error message display
This commit is contained in:
@ -119,7 +119,10 @@
|
||||
{#await upload}
|
||||
<!-- -->
|
||||
{:catch error}
|
||||
<div class="text-red-700">Failed to parse '{specifiedFileName}': {error?.message}</div>
|
||||
<div in:blur={{ delay: 200 }} class="text-red-700">
|
||||
Failed to parse '{specifiedFileName}':
|
||||
{error?.message}
|
||||
</div>
|
||||
{/await}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -32,7 +32,7 @@ export async function processUpload(file: File, progressListener: ProgressListen
|
||||
}
|
||||
|
||||
async function parsePdf(src: string | Uint8Array, progressListener: ProgressListenFunction): Promise<any> {
|
||||
pdfPipeline.debug(src, progressListener).then((debugInstance) => {
|
||||
return pdfPipeline.debug(src, progressListener).then((debugInstance) => {
|
||||
debug.set(debugInstance);
|
||||
return debug;
|
||||
});
|
||||
|
Reference in New Issue
Block a user