Bläddra i källkod

When a line in a config file is too long, say which config file it is.

Daniel Burrows 18 år sedan
förälder
incheckning
435704925e
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      apt-pkg/contrib/configuration.cc

+ 2 - 1
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);