Skip to content

Commit 023763e

Browse files
committed
feat: more informative error message from last_error
1 parent 21af5e1 commit 023763e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spring_last_err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl Error for LastError {
3838
impl Display for LastError {
3939
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4040
let s = match self {
41-
LastError::SpringErr(e) => format!("{}", e),
41+
LastError::SpringErr(e) => format!("{:?}", e),
4242
LastError::UnwindErr(any) => {
4343
if let Some(s) = any.downcast_ref::<String>() {
4444
s.clone()

0 commit comments

Comments
 (0)