Skip to content

Commit 02e6d7f

Browse files
committed
oops
1 parent 8f45064 commit 02e6d7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

SpiceQL/include/spiceql.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
#include "io.h"
1313
#include "query.h"
1414
#include "api.h"
15-
#include "inventory.h"
15+
#include "inventory.h"

SpiceQL/src/inventoryimpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace SpiceQL {
8585

8686
std::string cache_dir;
8787

88-
if (cache_dir_char == NULL || (CACHE_DIRECTORY == "")) {
88+
if (cache_dir_char == NULL && (CACHE_DIRECTORY == "")) {
8989
SPDLOG_DEBUG("Cache directory not set and not in environment variable " + CACHE_DIR_ENV_VAR + " and not overridden.");
9090
throw runtime_error("Cache directory not set and not in environment variable " + CACHE_DIR_ENV_VAR + " and not overridden.");
9191
}

SpiceQL/src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ namespace SpiceQL {
10011001
SPDLOG_TRACE("SpiceQL DB Path: {}", dbPath.string());
10021002

10031003
if (!fs::is_directory(dbPath)) {
1004-
throw runtime_error("Config Directory Not Found.");
1004+
throw runtime_error("Config Directory " + dbPath.string() + " Not Found.");
10051005
}
10061006

10071007
return dbPath;

0 commit comments

Comments
 (0)