]> git.saurik.com Git - apt.git/commitdiff
When a line in a config file is too long, say which config file it is.
authorDaniel Burrows <Daniel_Burrows@alumni.brown.edu>
Tue, 1 Apr 2008 04:54:01 +0000 (21:54 -0700)
committerDaniel Burrows <Daniel_Burrows@alumni.brown.edu>
Tue, 1 Apr 2008 04:54:01 +0000 (21:54 -0700)
apt-pkg/contrib/configuration.cc

index da57c2054cdfbbd389b8aed86a8a0e89461060cd..a523b513e2184f5eb8cddbf0b38f0a9bd6b87936 100644 (file)
@@ -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);