Skip to content
Browse files

blame it on erlang

  • Loading branch information...
1 parent c4ca378 commit 8d530451f15127ad98962f0e5fa24b248c13fe74 Hendrik Schnepel committed Oct 31, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 test/test-client.js
View
10 test/test-client.js
@@ -80,7 +80,15 @@ db2.create();
client
.replicate(DB_NAME, DB_NAME2, function(er, r) {
- if (er) throw new Error(JSON.stringify(er));
+ if (er) {
+ if (er.reason && er.reason.indexOf('erlang') > 0) {
+ console.error("---------------------------------------------------------------------------------");
+ console.error(" Test failed. Possibly due to https://issues.apache.org/jira/browse/COUCHDB-1221");
+ console.error(" Try restarting CouchDB for a quick fix.");
+ console.error("---------------------------------------------------------------------------------");
+ }
+ throw new Error(JSON.stringify(er));
+ }
callbacks.F = true;
assert.ok('session_id' in r);
});

0 comments on commit 8d53045

Please sign in to comment.
Something went wrong with that request. Please try again.