From a5b672b2792c555aa3acfb4def2cc02bd57bdbd6 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 24 Oct 2023 21:22:41 +0700 Subject: all: log and simplify error when source file is not exist Previously, if the source file to be copied is not exist, awwan will output only error for the ".vault" file, twice, for example !!! Copy: .vault: open .vault not exist Local: Copy: .vault: open .vault not exist This changes make the first line output to print the original source file first, the non-ecrypted one, and then followed by encrypted one, ??? loadFileInput "": not exist Local: Copy ".vault": not exist --- testdata/local/put.data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testdata') diff --git a/testdata/local/put.data b/testdata/local/put.data index ceea60f..b548ea1 100644 --- a/testdata/local/put.data +++ b/testdata/local/put.data @@ -10,7 +10,7 @@ The host name is encrypt. The secret password is this_is_a_secret. <<< encrypted_empty_passphrase.stderr -Local: Copy: encrypted.txt.vault: private key is missing or not loaded +Local: Copy: loadFileInput "encrypted.txt.vault": private key is missing or not loaded <<< encrypted_invalid_passphrase Local: NewSession: .awwan.env.vault: LoadPrivateKeyInteractive: x509: decryption password incorrect -- cgit v1.3