Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
ARUHA-523 Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Montrieux committed Feb 1, 2017
1 parent cda190f commit b7079c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/zalando/nakadi/service/StorageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ public Result<Void> createStorage(final JSONObject json) {

try {
storageDbRepository.createStorage(storage);
} catch (DuplicatedStorageIdException e) {
} catch (DuplicatedStorageIdException | InternalNakadiException e) {
return Result.problem(e.asProblem());
} catch (InternalNakadiException e) {
return Result.problem(Problem.valueOf(INTERNAL_SERVER_ERROR, e.getMessage()));
}

return Result.ok();
Expand Down

0 comments on commit b7079c3

Please sign in to comment.