summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-29 09:23:12 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-29 09:23:12 +0100
commite02bf26f284c6efc72593e6b4a251301144e5d0b (patch)
tree545b4275f89cae2e66956330195a8c579464742a /src
parente4d5298e7a179d4103581cba05cbc516f94acf60 (diff)
Improve an error message slightly.
Diffstat (limited to 'src')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 0c3cea08..15b833a1 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -353,7 +353,7 @@ dcp::file_to_string (boost::filesystem::path p, uintmax_t max_length)
{
uintmax_t len = boost::filesystem::file_size (p);
if (len > max_length) {
- throw MiscError ("Unexpectedly long file");
+ throw MiscError (String::compose ("Unexpectedly long file (%1)", p.string()));
}
FILE* f = fopen_boost (p, "r");