mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-30 17:48:50 +02:00
feat(fs): include full error message (#826)
This commit is contained in:
@@ -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
|
where
|
||||||
S: Serializer,
|
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