Skip to content

Commit

Permalink
fix(firewall/logs): added a more meaningful error when an iptables ru…
Browse files Browse the repository at this point in the history
…le could not be removed
  • Loading branch information
sniirful committed Apr 5, 2024
1 parent b1d0f0c commit b587c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firewall/firewall/rules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func GetRemoveRules(config configuration.Configuration) RemoveRules {
logs.PrintDebug(fmt.Sprintf(`Removing firewall rules for service "%v" with command "%v"...`, service.Name, cmd.String()))
err := cmd.Run()
if err != nil {
logs.PrintError(err.Error())
logs.PrintError(fmt.Sprintf(`Failed to remove firewall rules for service "%v".`, service.Name))
} else {
logs.PrintInfo(fmt.Sprintf(`Removed firewall rules for service "%v".`, service.Name))
}
Expand Down

0 comments on commit b587c7f

Please sign in to comment.