Skip to content

Commit

Permalink
return error instead of fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
realgam3 committed Dec 16, 2023
1 parent 677b91a commit 56d9d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transformer/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (env EnvSort) Swap(i, j int) {
func GetComposeFileDir(inputFiles []string) (string, error) {
// Check if input files are specified
if len(inputFiles) <= 0 {
log.Fatal("No input files specified")
return "", errors.New("No input files specified")
}

// Lets assume all the docker-compose files are in the same directory
Expand Down

0 comments on commit 56d9d8d

Please sign in to comment.