Permalink
Browse files

Merge pull request #46 from cloudant/13125-bubble-not-found-errors

Bubble db not found errors

BugzID: 13125
  • Loading branch information...
2 parents 1c5668d + 12930e5 commit d9ce500836f8149a873d742fc329a0dd52af2bfc @kocolosk kocolosk committed May 14, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/fabric_view_changes.erl
@@ -314,9 +314,12 @@ wait_db_updated(Timeout) ->
validate_start_seq(DbName, Seq) ->
try unpack_seqs(Seq, DbName) of _Any ->
ok
- catch _:_ ->
- Reason = <<"Malformed sequence supplied in 'since' parameter.">>,
- {error, {bad_request, Reason}}
+ catch
+ error:database_does_not_exist ->
+ {error, database_does_not_exist};
+ _:_ ->
+ Reason = <<"Malformed sequence supplied in 'since' parameter.">>,
+ {error, {bad_request, Reason}}
end.
unpack_seqs_test() ->

0 comments on commit d9ce500

Please sign in to comment.