summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-09-06 15:36:42 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-09-06 15:36:42 +0200
commit15cd3efc61b9ce653360fb14e367b136097c3641 (patch)
tree2fc93f0cc883d9df6f6c4df172187ebde2e2ddf9
parentc1db503dc44086ba2e14718961e12ee7d192ea11 (diff)
parentbd85e26641e96dcdffd7288da97ca16e70d775f8 (diff)
downloadmullvadvpn-15cd3efc61b9ce653360fb14e367b136097c3641.tar.xz
mullvadvpn-15cd3efc61b9ce653360fb14e367b136097c3641.zip
Merge branch 'upgrade-error-chain'
-rw-r--r--Cargo.lock19
-rw-r--r--mullvad-cli/Cargo.toml2
-rw-r--r--mullvad-daemon/Cargo.toml2
-rw-r--r--mullvad-daemon/src/main.rs8
-rw-r--r--talpid-core/Cargo.toml2
-rw-r--r--talpid-ipc/Cargo.toml2
-rw-r--r--talpid-openvpn-plugin/Cargo.toml2
7 files changed, 23 insertions, 14 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 942a970efa..a9adae914f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,7 +3,7 @@ name = "talpid-openvpn-plugin"
version = "0.1.0"
dependencies = [
"env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
- "error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
"openvpn-plugin 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"talpid-ipc 0.1.0",
@@ -304,6 +304,14 @@ dependencies = [
]
[[package]]
+name = "error-chain"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+dependencies = [
+ "backtrace 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+
+[[package]]
name = "fern"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -646,7 +654,7 @@ version = "0.1.0"
dependencies = [
"clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
- "error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
"mullvad-types 0.1.0",
@@ -664,7 +672,7 @@ dependencies = [
"chrono 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ctrlc 3.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"fern 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-client-core 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1183,7 +1191,7 @@ version = "0.1.0"
dependencies = [
"assert_matches 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"duct 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
- "error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core 7.1.0 (git+https://github.com/paritytech/jsonrpc?tag=v7.1.0)",
"jsonrpc-macros 7.1.0 (git+https://github.com/paritytech/jsonrpc?tag=v7.1.0)",
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1201,7 +1209,7 @@ version = "0.1.0"
dependencies = [
"assert_matches 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
- "error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core 7.1.0 (git+https://github.com/paritytech/jsonrpc?tag=v7.1.0)",
"jsonrpc-macros 7.1.0 (git+https://github.com/paritytech/jsonrpc?tag=v7.1.0)",
"jsonrpc-ws-server 7.1.0 (git+https://github.com/paritytech/jsonrpc?tag=v7.1.0)",
@@ -1512,6 +1520,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3ddf21e73e016298f5cb37d6ef8e8da8e39f91f9ec8b0df44b7deb16a9f8cd5b"
"checksum errno 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b2c858c42ac0b88532f48fca88b0ed947cad4f1f64d904bcd6c9f138f7b95d70"
"checksum error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d9435d864e017c3c6afeac1654189b06cdb491cf2ff73dbf0d73b0f292f42ff8"
+"checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3"
"checksum fern 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "89273e0d0e210f69600048a209a00e163560b51e3ef51c3942304e9b8aa8b47a"
"checksum fnv 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "6cc484842f1e2884faf56f529f960cc12ad8c71ce96cc7abba0a067c98fee344"
"checksum foreign-types 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3e4056b9bd47f8ac5ba12be771f77a0dae796d1bbaaf5fd0b9c2d38b69b8a29d"
diff --git a/mullvad-cli/Cargo.toml b/mullvad-cli/Cargo.toml
index e52788b47c..55ecb0394c 100644
--- a/mullvad-cli/Cargo.toml
+++ b/mullvad-cli/Cargo.toml
@@ -10,7 +10,7 @@ path = "src/main.rs"
[dependencies]
clap = "2.20"
-error-chain = "0.10"
+error-chain = "0.11"
lazy_static = "0.2"
log = "0.3"
env_logger = "0.4"
diff --git a/mullvad-daemon/Cargo.toml b/mullvad-daemon/Cargo.toml
index 51241255c0..908a906691 100644
--- a/mullvad-daemon/Cargo.toml
+++ b/mullvad-daemon/Cargo.toml
@@ -12,7 +12,7 @@ path = "src/main.rs"
app_dirs = "1.1"
chrono = { version = "0.4", features = ["serde"] }
clap = "2.25"
-error-chain = "0.10"
+error-chain = "0.11"
fern = "0.4"
futures = "0.1"
serde = "1.0"
diff --git a/mullvad-daemon/src/main.rs b/mullvad-daemon/src/main.rs
index 04797ea8a1..0fba4e910e 100644
--- a/mullvad-daemon/src/main.rs
+++ b/mullvad-daemon/src/main.rs
@@ -275,7 +275,7 @@ impl Daemon {
fn handle_tunnel_exited(&mut self, result: tunnel::Result<()>) -> Result<()> {
if let Err(e) = result.chain_err(|| "Tunnel exited in an unexpected way") {
- error!("{}", e.display());
+ error!("{}", e.display_chain());
}
self.remote_endpoint = None;
self.tunnel_interface = None;
@@ -339,7 +339,7 @@ impl Daemon {
self.kill_tunnel()?;
}
}
- Err(e) => error!("{}", e.display()),
+ Err(e) => error!("{}", e.display_chain()),
}
Ok(())
}
@@ -427,7 +427,7 @@ impl Daemon {
(TargetState::Secured, TunnelState::NotRunning) => {
debug!("Triggering tunnel start");
if let Err(e) = self.start_tunnel().chain_err(|| "Failed to start tunnel") {
- error!("{}", e.display());
+ error!("{}", e.display_chain());
self.remote_endpoint = None;
self.reset_security_policy()?;
self.management_interface_broadcaster.notify_error(&e);
@@ -531,7 +531,7 @@ impl DaemonShutdownHandle {
impl Drop for Daemon {
fn drop(self: &mut Daemon) {
if let Err(e) = rpc_info::remove().chain_err(|| "Unable to clean up rpc address file") {
- error!("{}", e.display());
+ error!("{}", e.display_chain());
}
}
}
diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml
index 0d987cca90..5dcb634b0d 100644
--- a/talpid-core/Cargo.toml
+++ b/talpid-core/Cargo.toml
@@ -6,7 +6,7 @@ description = "Core backend functionality of the Mullvad VPN client"
[dependencies]
duct = "0.9.1"
-error-chain = "0.10"
+error-chain = "0.11"
jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc", tag = "v7.1.0" }
jsonrpc-macros = { git = "https://github.com/paritytech/jsonrpc", tag = "v7.1.0" }
lazy_static = "0.2"
diff --git a/talpid-ipc/Cargo.toml b/talpid-ipc/Cargo.toml
index 8f354bc946..e12646cfbb 100644
--- a/talpid-ipc/Cargo.toml
+++ b/talpid-ipc/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["Linus Färnstrand <linus@mullvad.net>", "Erik Larkö <erik@mullvad.n
description = "IPC client and server for talpid"
[dependencies]
-error-chain = "0.10"
+error-chain = "0.11"
serde = "1.0"
serde_json = "1.0"
log = "0.3"
diff --git a/talpid-openvpn-plugin/Cargo.toml b/talpid-openvpn-plugin/Cargo.toml
index e0b4ddec77..06a2686fa5 100644
--- a/talpid-openvpn-plugin/Cargo.toml
+++ b/talpid-openvpn-plugin/Cargo.toml
@@ -8,7 +8,7 @@ description = "OpenVPN shared library plugin for relaying OpenVPN events to talp
crate-type = ["cdylib"]
[dependencies]
-error-chain = "0.10"
+error-chain = "0.11"
log = "0.3"
env_logger = "0.4"