From 13e4086131ce15468e91c6e211827fc45be51749 Mon Sep 17 00:00:00 2001 From: Thomas Lopatic <thomas@lopatic.de> Date: Thu, 25 Jun 2015 16:59:14 +0530 Subject: [PATCH] Better error messages. --- .../src/main/java/com/yahoo/ycsb/db/AerospikeClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3678f973..87d3dcf6 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; } -- GitLab