Formater + try/catch error
This commit is contained in:
@@ -200,10 +200,10 @@ export class MetadataRepository implements IMetadataRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async writeTags(path: string, tags: Partial<Tags>): Promise<void> {
|
async writeTags(path: string, tags: Partial<Tags>): Promise<void> {
|
||||||
|
try {
|
||||||
await exiftool.write(path, tags, ['-overwrite_original']).catch((error) => {
|
await exiftool.write(path, tags, ['-overwrite_original']);
|
||||||
this.logger.warn(`Error writing exif data (${path}): ${error}`, error?.stack);
|
} catch (error) {
|
||||||
return null;
|
this.logger.warn(`Error writing exif data (${path}): ${error}`);
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -281,8 +281,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{:else if !asset.exifInfo?.dateTimeOriginal && !asset.isReadOnly}
|
{:else if !asset.exifInfo?.dateTimeOriginal && !asset.isReadOnly}
|
||||||
<div
|
<div class="flex justify-between place-items-start gap-4 py-4">
|
||||||
class="flex justify-between place-items-start gap-4 py-4">
|
|
||||||
<div class="flex gap-4">
|
<div class="flex gap-4">
|
||||||
<div>
|
<div>
|
||||||
<Icon path={mdiCalendar} size="24" />
|
<Icon path={mdiCalendar} size="24" />
|
||||||
@@ -329,7 +328,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if isShowChangeDate}
|
{#if isShowChangeDate}
|
||||||
@@ -462,8 +460,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{:else if asset.exifInfo?.city && asset.isReadOnly}
|
{:else if asset.exifInfo?.city && asset.isReadOnly}
|
||||||
<div
|
<div class="flex justify-between place-items-start gap-4 py-4">
|
||||||
class="flex justify-between place-items-start gap-4 py-4">
|
|
||||||
<div class="flex gap-4">
|
<div class="flex gap-4">
|
||||||
<div><Icon path={mdiMapMarkerOutline} size="24" /></div>
|
<div><Icon path={mdiMapMarkerOutline} size="24" /></div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user