Skip to content

Commit

Permalink
fix: convert config read error to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecat committed May 17, 2024
1 parent 1ffc08c commit fc45610
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/steampipeconfig/parse/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package parse

import (
"fmt"
"github.com/turbot/steampipe/pkg/filepaths"
"io"
"log"
"os"
"path/filepath"
"sort"

"github.com/turbot/steampipe/pkg/filepaths"

"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclparse"
"github.com/hashicorp/hcl/v2/json"
Expand All @@ -29,7 +30,7 @@ func LoadFileData(paths ...string) (map[string][]byte, hcl.Diagnostics) {

if err != nil {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Severity: hcl.DiagWarning,
Summary: fmt.Sprintf("failed to read config file %s", configPath),
Detail: err.Error()})
continue
Expand Down

0 comments on commit fc45610

Please sign in to comment.