Skip to content

Commit

Permalink
Standard error
Browse files Browse the repository at this point in the history
  • Loading branch information
pselle committed Oct 15, 2019
1 parent cba1965 commit d18f3a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraformignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func parseIgnoreFile(rootPath string) []rule {
if err != nil {
// Only show the error debug if an error *other* than IsNotExist
if !os.IsNotExist(err) {
fmt.Printf("Error reading .terraformignore, default exclusions will apply: %v \n", err)
fmt.Fprintf(os.Stderr, "Error reading .terraformignore, default exclusions will apply: %v \n", err)
}
return defaultExclusions
}
Expand Down Expand Up @@ -68,7 +68,7 @@ func readRules(input io.Reader) []rule {
}

if err := scanner.Err(); err != nil {
fmt.Printf("Error reading .terraformignore, default exclusions will apply: %v \n", err)
fmt.Fprintf(os.Stderr, "Error reading .terraformignore, default exclusions will apply: %v \n", err)
return defaultExclusions
}
return rules
Expand All @@ -86,7 +86,7 @@ func matchIgnoreRule(path string, rules []rule) bool {
}

if matched {
fmt.Printf("Skipping excluded path: %s \n", path)
debug(path, "Skipping excluded path: ", path)
}

return matched
Expand Down

0 comments on commit d18f3a8

Please sign in to comment.