From: Simon Ruderich Date: Tue, 13 Apr 2021 05:47:06 +0000 (+0200) Subject: config: add newline between error message and explanation X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=cc1ca940efef242decfa8bd4adc2e0d9cbf6a210;p=safcm%2Fsafcm.git config: add newline between error message and explanation This makes the result more readable. --- diff --git a/cmd/safcm/config/files.go b/cmd/safcm/config/files.go index 08b2dbf..8d1a728 100644 --- a/cmd/safcm/config/files.go +++ b/cmd/safcm/config/files.go @@ -30,6 +30,7 @@ func LoadFiles(group string) (map[string]*safcm.File, error) { basePath := filepath.Join(group, "files") const errMsg = ` + The actual permissions and user/group of files and directories are not used (except for +x on files). 0644/0755 and current remote user/group is used per default. Apply different file permissions via permissions.yaml. To prevent diff --git a/cmd/safcm/config/files_test.go b/cmd/safcm/config/files_test.go index 82d60c9..9f226cd 100644 --- a/cmd/safcm/config/files_test.go +++ b/cmd/safcm/config/files_test.go @@ -69,6 +69,7 @@ func TestLoadFiles(t *testing.T) { defer os.Remove("files-invalid-type/files/invalid") const errMsg = ` + The actual permissions and user/group of files and directories are not used (except for +x on files). 0644/0755 and current remote user/group is used per default. Apply different file permissions via permissions.yaml. To prevent