mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
feat(fs): include full error message (#826)
This commit is contained in:
1 parent
68cb23f9c0
commit
2d6bfbfacf
2 files changed
+10
-1
No files matched your search
@@ -36,7 +36,11 @@ impl Serialize for CommandError {
|
||||
where
|
||||
S: Serializer,
|
||||
{
|
||||
serializer.serialize_str(self.to_string().as_ref())
|
||||
if let Self::Anyhow(err) = self {
|
||||
serializer.serialize_str(format!("{err:#}").as_ref())
|
||||
} else {
|
||||
serializer.serialize_str(self.to_string().as_ref())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user