Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Bubble db not found errors #46

Merged
merged 1 commit into from May 14, 2012
Jump to file or symbol
Failed to load files and symbols.
+6 −3
Split
@@ -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() ->