Skip to content

Commit 051e469

Browse files
committed
Print full error when using anyhow
1 parent c274417 commit 051e469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exception.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl From<&str> for PhpException {
8181
#[cfg(feature = "anyhow")]
8282
impl From<anyhow::Error> for PhpException {
8383
fn from(err: anyhow::Error) -> Self {
84-
Self::new(err.to_string(), 0, crate::zend::ce::exception())
84+
Self::new(format!("{:#}", err), 0, crate::zend::ce::exception())
8585
}
8686
}
8787

0 commit comments

Comments
 (0)