aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorrski <rom.skiad@gmail.com>2022-12-23 02:33:32 +0200
committerrski <rom.skiad@gmail.com>2022-12-23 02:55:51 +0200
commitd034ed1891e66d63f1eae90444a516a931ebadc2 (patch)
tree2eee163519a620f754637bd18f8a1db62ad7dd9f /src/libutil/util.hh
parentc9eee5a84d91e974b09623e01d12586e7026f1ce (diff)
src/libstore: Print the reason opening the DB failed
Without this, the error is lost, and it makes for a hard to debug situation. Also remove some of the busyness inside the sqlite_open_v2 args. The errcode returned is not the extended one. The only way to make open return an extended code, would be to add SQLITE_OPEN_EXRESCODE to the flags. In the future it might be worth making this change, which would also simplify the existing SQLiteError code.
Diffstat (limited to 'src/libutil/util.hh')
0 files changed, 0 insertions, 0 deletions