mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
33c8d84e23
commit
fca3f20c73
1 changed files with 6 additions and 4 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue