Report bad format string on error

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2023-02-06 15:33:19 -06:00
parent 45fdebc0fb
commit 5ca878f334
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 2 additions and 2 deletions

View File

@ -571,14 +571,14 @@ public class CustomRequestLog extends ContainerLifeCycle implements RequestLog
}
else
{
throw new IllegalStateException("formatString parsing error");
throw new IllegalStateException("formatString parsing error: " + formatString);
}
remaining = m.group("REMAINING");
}
else
{
throw new IllegalArgumentException("Invalid format string");
throw new IllegalArgumentException("Invalid format string: " + formatString);
}
}