Skip to content

Commit

Permalink
oops, do not wrap printed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhurt committed Apr 19, 2024
1 parent c482abb commit e994816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions command/check/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func (c *Command) Run(args []string) int {

// init flags
if err = c.setupFlags(args); err != nil {
c.Log.Printf("[Error] Failed to init flags: %w", err)
c.Log.Printf("[Error] Failed to init flags: %s", err.Error())
return 1
}

// check ip
if err = c.checkIP(); err != nil {
c.Log.Printf("[Error] Failed to check addresses: %w", err)
c.Log.Printf("[Error] Failed to check addresses: %s", err.Error())
return 1
}

Expand Down
4 changes: 2 additions & 2 deletions command/update/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ func (c *Command) Run(args []string) int {

// init flags
if err = c.setupFlags(args); err != nil {
c.Log.Printf("[Error] Failed to init flags: %w", err)
c.Log.Printf("[Error] Failed to init flags: %s", err.Error())
return 1
}

// attempt to update p
if err = c.updateIP(); err != nil {
c.Log.Printf("[Error] Failed to update dns record: %w", err)
c.Log.Printf("[Error] Failed to update dns record: %s", err.Error())
return 1
}

Expand Down

0 comments on commit e994816

Please sign in to comment.