diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/cluster/StoreStatus.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/StoreStatus.cpp b/cpp/src/qpid/cluster/StoreStatus.cpp index d38f051cc8..cf75cd3b5f 100644 --- a/cpp/src/qpid/cluster/StoreStatus.cpp +++ b/cpp/src/qpid/cluster/StoreStatus.cpp @@ -79,7 +79,9 @@ framing::SequenceNumber loadSeqNum(const fs::path& path) { void StoreStatus::load() { - if (dataDir.empty()) return; + if (dataDir.empty()) { + throw Exception(QPID_MSG("No data-dir: When a store is loaded together with clustering, --data-dir must be specified.")); + } fs::path dir = fs::path(dataDir, fs::native)/SUBDIR; try { create_directory(dir); |