From cc1ca940efef242decfa8bd4adc2e0d9cbf6a210 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 13 Apr 2021 07:47:06 +0200 Subject: [PATCH] config: add newline between error message and explanation This makes the result more readable. --- cmd/safcm/config/files.go | 1 + cmd/safcm/config/files_test.go | 1 + 2 files changed, 2 insertions(+) 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 -- 2.44.1