mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-26 19:50:51 +00:00
Update StorageSQLite.cpp
This commit is contained in:
parent
c615084ba7
commit
d80bcf0bd3
@ -162,7 +162,7 @@ void registerStorageSQLite(StorageFactory & factory)
|
|||||||
|
|
||||||
std::error_code err;
|
std::error_code err;
|
||||||
auto canonical_path = fs::canonical(database_path, err);
|
auto canonical_path = fs::canonical(database_path, err);
|
||||||
/// The path existance is also checked here.
|
/// The path existence is also checked.
|
||||||
if (err)
|
if (err)
|
||||||
throw Exception(ErrorCodes::PATH_ACCESS_DENIED, "SQLite database path '{}' is invalid. Error: {}", database_path, err.message());
|
throw Exception(ErrorCodes::PATH_ACCESS_DENIED, "SQLite database path '{}' is invalid. Error: {}", database_path, err.message());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user