summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-03-05 15:55:43 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-03-05 15:55:43 +0100
commiteb64d9a6a23fe613141810233594df5c4a8bd999 (patch)
treeee36df8653be3baacfdb0c29ac646395b7343983
parent7b5ff0e880461b681084e54c18b44aa61f7ca00e (diff)
downloadmullvadvpn-eb64d9a6a23fe613141810233594df5c4a8bd999.tar.xz
mullvadvpn-eb64d9a6a23fe613141810233594df5c4a8bd999.zip
Error name and path cleanup
-rw-r--r--talpid_openvpn_plugin/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid_openvpn_plugin/src/lib.rs b/talpid_openvpn_plugin/src/lib.rs
index a63e82e8ad..193bcf83c3 100644
--- a/talpid_openvpn_plugin/src/lib.rs
+++ b/talpid_openvpn_plugin/src/lib.rs
@@ -130,13 +130,13 @@ pub fn init_logger() -> ::std::result::Result<(), ()> {
})
}
-pub fn log_error(msg: &str, e: ::Error) {
+pub fn log_error(msg: &str, error: Error) {
error!("{}", msg);
- for e in e.iter() {
+ for e in error.iter() {
error!("caused by: {}", e);
}
// When running with RUST_BACKTRACE=1, print backtrace.
- if let Some(backtrace) = e.backtrace() {
+ if let Some(backtrace) = error.backtrace() {
error!("backtrace: {:?}", backtrace);
}
}