From a628747128901a6f551d5147020184f9758e2757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Szol=C3=A1r?= Date: Wed, 1 May 2019 11:53:57 +0200 Subject: [PATCH] - Correct error message --- rs-backup.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rs-backup.go b/rs-backup.go index b0051bf..f8b19e6 100644 --- a/rs-backup.go +++ b/rs-backup.go @@ -99,8 +99,7 @@ func main() { _, err = exec.Command(path, args...).Output() if err != nil { - //log.Fatal(fmt.Printf("Command finished with error: %v", err)) - fmt.Println("asd") + log.Fatal(fmt.Printf("Command finished with error: %v", err)) } sendTo := viper.GetStringSlice("mail.to") @@ -129,7 +128,7 @@ Content-Disposition: attachment; filename="rsync.log" Content-Transfer-Encoding: base64 %s ---_rssbckkgthbscrpt14467_ +--_rssbckkgthbscrpt14467_-- ` // variables to make ExamplePlainAuth compile, without adding