Skip to content

Commit

Permalink
add a message when a Dockerfile parsing error occurs
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Aug 13, 2024
1 parent fc02682 commit 04de917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/iac/scanners/dockerfile/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (p *Parser) ParseFS(ctx context.Context, target fs.FS, path string) (map[st

df, err := p.ParseFile(ctx, target, path)
if err != nil {
// TODO add debug for parse errors
p.logger.Error("Failed to parse Dockerfile", log.FilePath(path), log.Err(err))
return nil
}
files[path] = df
Expand Down

0 comments on commit 04de917

Please sign in to comment.