diff --git a/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java b/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java index 3678f973be8ab8878dfb0b2d20e346f2b082b4b1..87d3dcf6860e52603e30b9d3ea487921d8a075bd 100644 --- a/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java +++ b/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java @@ -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; }