feat: print error message and not entire error if available when deleting an attachment from disk

pull/2660/head
William Grant 2 years ago
parent 73ca99496d
commit c1ea1f0037

@ -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;
}
};

Loading…
Cancel
Save