fix(exports): stabilize published types and compatibility with updated dependencies
This commit is contained in:
@@ -224,7 +224,8 @@ export class InvoiceStorage {
|
||||
return contentHash;
|
||||
} catch (error) {
|
||||
this.logger.log('error', `Failed to store invoice: ${error}`);
|
||||
throw new Error(`Invoice storage failed: ${error.message}`);
|
||||
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||
throw new Error(`Invoice storage failed: ${errorMessage}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -707,4 +708,4 @@ export class InvoiceStorage {
|
||||
|
||||
this.logger.log('info', `Updated metadata for invoice: ${contentHash}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user