mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-25 07:16:02 +00:00
14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
/** Library history is secondary to a filesystem operation that already committed. */
|
|
export async function persistRecentMetadata(
|
|
action: () => Promise<void>,
|
|
): Promise<string | undefined> {
|
|
try {
|
|
await action();
|
|
return undefined;
|
|
} catch (error) {
|
|
const warning = `Project operation completed, but recent-project history could not be updated: ${String(error)}`;
|
|
console.warn(warning);
|
|
return warning;
|
|
}
|
|
}
|