Make the parser failure message a bit more compact
While running fuzzing this was spewing way too many log lines
This commit is contained in:
parent
6ccb9d841d
commit
c7d50516ac
|
@ -17,7 +17,7 @@ async fn parse(mut req: Request<()>) -> tide::Result {
|
||||||
match parsed {
|
match parsed {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
use pest::error::*;
|
use pest::error::*;
|
||||||
error!("Failed to parse: {:#?}", e);
|
error!("Failed to parse: {:?}", e);
|
||||||
|
|
||||||
let variant = match e.variant {
|
let variant = match e.variant {
|
||||||
ErrorVariant::CustomError { message } => message,
|
ErrorVariant::CustomError { message } => message,
|
||||||
|
|
Loading…
Reference in New Issue