More detailed logging of parsing errors.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15046 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-11-22 06:22:12 +00:00
parent 33c8d84e23
commit fca3f20c73

View file

@ -670,8 +670,9 @@ static inline int getDigits(const char *from, char *to, int limit)
{
if (source[sourceIdx] != format[formatIdx])
{
NSLog(@"Expected literal '%c' but got '%c'",
format[formatIdx], source[sourceIdx]);
NSLog(@"Expected literal '%c' but got '%c' parsing"
@"'%@' using '%@'", format[formatIdx],
source[sourceIdx], description, fmt);
}
sourceIdx++;
}
@ -690,8 +691,9 @@ static inline int getDigits(const char *from, char *to, int limit)
{
if (source[sourceIdx] != '%')
{
NSLog(@"Expected literal '%' but got '%c'",
source[sourceIdx]);
NSLog(@"Expected literal '%%' but got '%c' parsing"
@"'%@' using '%@'", source[sourceIdx],
description, fmt);
}
sourceIdx++;
}