summaryrefslogtreecommitdiffstats
path: root/browser/app/nmhproxy/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/app/nmhproxy/src/main.rs')
-rw-r--r--browser/app/nmhproxy/src/main.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/browser/app/nmhproxy/src/main.rs b/browser/app/nmhproxy/src/main.rs
index de9cd8c2a3..02351eb0f1 100644
--- a/browser/app/nmhproxy/src/main.rs
+++ b/browser/app/nmhproxy/src/main.rs
@@ -43,9 +43,12 @@ fn main() -> Result<(), Error> {
"Failed to deserialize message JSON",
));
})?;
- commands::process_command(&native_messaging_json).or_else(|_| -> Result<bool, _> {
- commands::generate_response("Failed to process command", ResultCode::Error.into())
- .expect("JSON error");
+ commands::process_command(&native_messaging_json).or_else(|e| -> Result<bool, _> {
+ commands::generate_response(
+ format!("Failed to process command: {}", e).as_str(),
+ ResultCode::Error.into(),
+ )
+ .expect("JSON error");
return Err(Error::new(
ErrorKind::InvalidInput,
"Failed to process command",