Skip to content

Commit

Permalink
Added error messages for each failed assertion
Browse files Browse the repository at this point in the history
Signed-off-by: jubittajohn <jujohn@redhat.com>
  • Loading branch information
jubittajohn committed Jul 10, 2023
1 parent a80f88f commit ae3251d
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 97 deletions.
2 changes: 0 additions & 2 deletions test/operator-e2e/create_fbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,11 @@ func WriteFBC(fbc declcfg.DeclarativeConfig, fbcFilePath string, fbcFileName str
if os.IsNotExist(err) {
err := os.MkdirAll(fbcFilePath, 0755)
if err != nil {
fmt.Printf("Failed to create directory: %v\n", err)
return err
}
}
file, err := os.Create(fbcFilePath + "/" + fbcFileName)
if err != nil {
fmt.Printf("Failed to create file: %v\n", err)
return err
}
defer file.Close()
Expand Down
Loading

0 comments on commit ae3251d

Please sign in to comment.