mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
better MalformedHexInteger
This commit is contained in:
parent
1fd9a7ad9c
commit
4d1ecd2d50
4 changed files with 65 additions and 24 deletions
13
cli/app.rs
13
cli/app.rs
|
@ -789,10 +789,9 @@ impl<'a> Limbo<'a> {
|
|||
if let Some(ref mut stats) = statistics {
|
||||
stats.execute_time_elapsed_samples.push(start.elapsed());
|
||||
}
|
||||
let _ = self.write_fmt(format_args!(
|
||||
"{:?}",
|
||||
miette::Error::from(err).with_source_code(sql.to_owned())
|
||||
));
|
||||
let report =
|
||||
miette::Error::from(err).with_source_code(sql.to_owned());
|
||||
let _ = self.write_fmt(format_args!("{:?}", report));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -805,10 +804,8 @@ impl<'a> Limbo<'a> {
|
|||
},
|
||||
Ok(None) => {}
|
||||
Err(err) => {
|
||||
let _ = self.write_fmt(format_args!(
|
||||
"{:?}",
|
||||
miette::Error::from(err).with_source_code(sql.to_owned())
|
||||
));
|
||||
let report = miette::Error::from(err).with_source_code(sql.to_owned());
|
||||
let _ = self.write_fmt(format_args!("{:?}", report));
|
||||
anyhow::bail!("We have to throw here, even if we printed error");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue