summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/configuration.cc
diff options
context:
space:
mode:
authorDaniel Burrows <Daniel_Burrows@alumni.brown.edu>2008-03-31 21:54:01 -0700
committerDaniel Burrows <Daniel_Burrows@alumni.brown.edu>2008-03-31 21:54:01 -0700
commit435704925edae0801103eb12b9f2bbce89d74769 (patch)
treecddb6a2dc36b1bca421b69ade9b9e532f82af70e /apt-pkg/contrib/configuration.cc
parentea45ff83ac6a74d369b9d5eb1533c9a3a32e45e4 (diff)
When a line in a config file is too long, say which config file it is.
Diffstat (limited to 'apt-pkg/contrib/configuration.cc')
-rw-r--r--apt-pkg/contrib/configuration.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc
index da57c2054..a523b513e 100644
--- a/apt-pkg/contrib/configuration.cc
+++ b/apt-pkg/contrib/configuration.cc
@@ -512,7 +512,8 @@ bool ReadConfigFile(Configuration &Conf,const string &FName,bool AsSectional,
CurLine++;
// This should be made to work instead, but this is better than looping
if (F.fail() && !F.eof())
- return _error->Error(_("Line %d too long (max %lu)"), CurLine, sizeof(Buffer));
+ return _error->Error(_("%s: Line %d too long (max %lu)"),
+ FName.c_str(), CurLine, sizeof(Buffer));
_strtabexpand(Buffer,sizeof(Buffer));
_strstrip(Buffer);