diff --git a/ts/types/attachments/migrations.ts b/ts/types/attachments/migrations.ts index d15f2faca..6c206c016 100644 --- a/ts/types/attachments/migrations.ts +++ b/ts/types/attachments/migrations.ts @@ -156,7 +156,9 @@ const handleDiskDeletion = async (path: string) => { window.log.debug(`deleteDataSuccessful: Deletion succeeded for attachment ${path}`); return undefined; } catch (err) { - window.log.warn(`deleteDataSuccessful: Deletion failed for attachment ${path} ${err}`); + window.log.warn( + `deleteDataSuccessful: Deletion failed for attachment ${path} ${err.message || err}` + ); return path; } };