mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
feat(fs): include full error message (#826)
This commit is contained in:
committed by
GitHub
parent
68cb23f9c0
commit
2d6bfbfacf
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Fix promise rejection error only containing the context and stripping the actual error message.
|
||||
@@ -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