From 127b8533cd3b20f454853f9da372215a72d469e7 Mon Sep 17 00:00:00 2001 From: DenioD Date: Sun, 27 Oct 2019 21:42:57 +0100 Subject: [PATCH] fix --- cli/src/lib.rs | 4 ++-- lib/src/lightclient.rs | 2 +- lib/src/lightwallet/startup_helpers.rs | 4 ++-- lib/src/startup_helpers.rs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/src/lib.rs b/cli/src/lib.rs index b7406dd..d4b9943 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -75,11 +75,11 @@ pub fn report_permission_error() { eprintln!("HOME: {}", home); eprintln!("Executable: {}", current_executable.display()); if home == "/" { - eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .", + eprintln!("User {} must have permission to write to '{}silentdragonlite/' .", user, home); } else { - eprintln!("User {} must have permission to write to '{}/.silentdragonlite/' .", + eprintln!("User {} must have permission to write to '{}/silentdragonlite/' .", user, home); } diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 58d402a..0c52baa 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -103,7 +103,7 @@ impl LightClientConfig { zcash_data_location.push("silentdragonlite"); } else { zcash_data_location = dirs::home_dir().expect("Couldn't determine home directory!"); - zcash_data_location.push("/.silentdragonlite/"); + zcash_data_location.push("silentdragonlite/"); }; match &self.chain_name[..] { diff --git a/lib/src/lightwallet/startup_helpers.rs b/lib/src/lightwallet/startup_helpers.rs index 6b47f46..d8b7cf2 100644 --- a/lib/src/lightwallet/startup_helpers.rs +++ b/lib/src/lightwallet/startup_helpers.rs @@ -9,11 +9,11 @@ pub fn report_permission_error() { eprintln!("HOME: {}", home); eprintln!("Executable: {}", current_executable.display()); if home == "/" { - eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .", + eprintln!("User {} must have permission to write to '{}silentdragonlite/' .", user, home); } else { - eprintln!("User {} must have permission to write to '{}/.silentdragonlite/ .", + eprintln!("User {} must have permission to write to '{}/silentdragonlite/ .", user, home); } diff --git a/lib/src/startup_helpers.rs b/lib/src/startup_helpers.rs index 44fd061..a3cbaf7 100644 --- a/lib/src/startup_helpers.rs +++ b/lib/src/startup_helpers.rs @@ -9,11 +9,11 @@ pub fn report_permission_error() { eprintln!("HOME: {}", home); eprintln!("Executable: {}", current_executable.display()); if home == "/" { - eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .", + eprintln!("User {} must have permission to write to '{}silentdragonlite/' .", user, home); } else { - eprintln!("User {} must have permission to write to '{}/.silentdragonlite/ .", + eprintln!("User {} must have permission to write to '{}/silentdragonlite/ .", user, home); }