summaryrefslogtreecommitdiff
path: root/src/lib/file_group.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-18 17:02:33 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-18 17:02:33 +0100
commit513947df0f421c086ac56dff48dfe540b0a380c2 (patch)
tree5fd393d3833a512dffacbeb2bb11eafe4003440e /src/lib/file_group.cc
parent6c16feca6c9b51b4833051eff4b5f6a9e9454a73 (diff)
Better errors on open fails; remove unused exception.
Diffstat (limited to 'src/lib/file_group.cc')
-rw-r--r--src/lib/file_group.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc
index 548e13fef..90aa10e28 100644
--- a/src/lib/file_group.cc
+++ b/src/lib/file_group.cc
@@ -92,7 +92,7 @@ FileGroup::ensure_open_path (size_t p) const
_current_path = p;
_current_file = fopen_boost (_paths[_current_path], "rb");
if (_current_file == 0) {
- throw OpenFileError (_paths[_current_path]);
+ throw OpenFileError (_paths[_current_path], errno);
}
}