Skip to content

Commit

Permalink
actions: filesystem-deploy: Return error rather than fatal log
Browse files Browse the repository at this point in the history
We should be consistent and return an error to bubble up rather
than logging the error.

Signed-off-by: Christopher Obbard <[email protected]>
  • Loading branch information
obbardc committed Dec 17, 2024
1 parent 8dc9cbc commit 260c01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/filesystem_deploy_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (fd *FilesystemDeployAction) setupKernelCmdline(context *debos.DebosContext
defer f.Close()

if err != nil {
log.Fatalf("Couldn't open /etc/kernel/cmdline: %v", err)
return fmt.Errorf("Couldn't open /etc/kernel/cmdline: %v", err)
}

cmdline = append(cmdline, strings.TrimSpace(string(current)))
Expand Down

0 comments on commit 260c01f

Please sign in to comment.