]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update document-detail.component.ts
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 10 May 2023 04:48:31 +0000 (21:48 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Wed, 10 May 2023 04:48:31 +0000 (21:48 -0700)
src-ui/src/app/components/document-detail/document-detail.component.ts

index bcce59441c63da582c12c17c53606c4b9249f539..599ae852388f26803097f1bbb5831046e03514e6 100644 (file)
@@ -386,7 +386,9 @@ export class DocumentDetailComponent
           error: (error) => {
             this.suggestions = null
             this.toastService.showError(
-              $localize`Error retrieving suggestions` + ': ' + error.toString()
+              $localize`Error retrieving suggestions: ${JSON.stringify(
+                error
+              ).slice(0, 500)}`
             )
           },
         })