Skip to content
Snippets Groups Projects
Commit 13e40861 authored by Thomas Lopatic's avatar Thomas Lopatic
Browse files

Better error messages.

parent dadbf6c5
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ public class AerospikeClient extends com.yahoo.ycsb.DB {
new com.aerospike.client.AerospikeClient(clientPolicy, host, port);
} catch (AerospikeException e) {
throw new DBException(String.format("Error while creating Aerospike " +
"client for %s:%d.", host, port));
"client for %s:%d.", host, port), e);
}
}
......@@ -150,7 +150,7 @@ public class AerospikeClient extends com.yahoo.ycsb.DB {
return RESULT_OK;
} catch (AerospikeException e) {
if (e.getResultCode() != ResultCode.DEVICE_OVERLOAD) {
System.err.println("Error while updating key " + key + ": " + e);
System.err.println("Error while writing key " + key + ": " + e);
return RESULT_ERROR;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment