Skip to content

Commit

Permalink
invoice: Make sure we don't swallow global lock error during invoice …
Browse files Browse the repository at this point in the history
…api calls
  • Loading branch information
sbrossie committed Apr 15, 2021
1 parent ce733ea commit e432b0c
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -127,8 +127,7 @@ public List<InvoiceItem> dispatchToInvoicePluginsAndInsertItems(final UUID accou

return fromInvoiceItemModelDao(createdInvoiceItems);
} catch (final LockFailedException e) {
log.warn("Failed to process invoice items for accountId='{}'", accountId.toString(), e);
return ImmutableList.<InvoiceItem>of();
throw new InvoiceApiException(e, ErrorCode.UNEXPECTED_ERROR, "Failed to process invoice items: failed to acquire lock");
} finally {
if (lock != null) {
lock.release();
Expand Down

0 comments on commit e432b0c

Please sign in to comment.