diff options
| author | Stefan Boberg <[email protected]> | 2021-09-15 15:23:47 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-15 15:23:47 +0200 |
| commit | f34aa060d7da16d4e08644cf8572db979f3ea8d0 (patch) | |
| tree | c7c5e5f961c971e2c8e93f542241c7817aa9e3fb /zenserver/projectstore.cpp | |
| parent | Made logging macros always append `sv` string_view literal suffix (diff) | |
| download | zen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.tar.xz zen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.zip | |
Changed `std::exception` into `std::runtime_error` since `std::exception` does not have a constructor which accepts a string argument in the standard (this appears to be an MSVC implementation thing)
Diffstat (limited to 'zenserver/projectstore.cpp')
| -rw-r--r-- | zenserver/projectstore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index 79cd250dc..404484edf 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -142,14 +142,14 @@ struct ProjectStore::OplogStorage : public RefCounted } else { - throw std::exception("column family iteration failed for '{}': '{}'"_format(RocksdbPath, Status.getState()).c_str()); + throw std::runtime_error("column family iteration failed for '{}': '{}'"_format(RocksdbPath, Status.getState()).c_str()); } Status = rocksdb::DB::Open(Options, RocksdbPath, ColumnDescriptors, &m_RocksDbColumnHandles, &Db); if (!Status.ok()) { - throw std::exception("database open failed for '{}': '{}'"_format(RocksdbPath, Status.getState()).c_str()); + throw std::runtime_error("database open failed for '{}': '{}'"_format(RocksdbPath, Status.getState()).c_str()); } m_RocksDb.reset(Db); |