summaryrefslogtreecommitdiff
path: root/profcollectd/libprofcollectd/service.rs
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2021-03-29 18:08:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-29 18:08:40 +0000
commitb202187db8b6d63e465de29307e437d34d71b950 (patch)
tree44d43891f564f2f62a3f913bac8a931488d58178 /profcollectd/libprofcollectd/service.rs
parenta49cbf9002ef82e893a0da6cd137d1adaf5e6d61 (diff)
parentbbc9b4e9587ef0c58bd035c532e2c925e7611f99 (diff)
downloadextras-b202187db8b6d63e465de29307e437d34d71b950.tar.gz
Merge "profcollectd: keep the entire error backtrace in Binder result"
Diffstat (limited to 'profcollectd/libprofcollectd/service.rs')
-rw-r--r--profcollectd/libprofcollectd/service.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/profcollectd/libprofcollectd/service.rs b/profcollectd/libprofcollectd/service.rs
index 1f134209..dc622ff3 100644
--- a/profcollectd/libprofcollectd/service.rs
+++ b/profcollectd/libprofcollectd/service.rs
@@ -34,7 +34,8 @@ use crate::report::pack_report;
use crate::scheduler::Scheduler;
fn err_to_binder_status(msg: Error) -> Status {
- let msg = CString::new(msg.to_string()).expect("Failed to convert to CString");
+ let msg = format!("{:#?}", msg);
+ let msg = CString::new(msg).expect("Failed to convert to CString");
Status::new_service_specific_error(1, Some(&msg))
}