mirror of
https://github.com/UnnoTed/wireguird
synced 2024-11-24 10:35:29 +00:00
chore: using errors pkg instead of fmt
This commit is contained in:
parent
0a0b34ff53
commit
a541ac2223
@ -414,7 +414,7 @@ func (t *Tunnels) Create() error {
|
|||||||
err := func() error {
|
err := func() error {
|
||||||
row := tl.GetSelectedRow()
|
row := tl.GetSelectedRow()
|
||||||
if row == nil {
|
if row == nil {
|
||||||
return fmt.Errorf("No row selected.")
|
return errors.New("No row selected.")
|
||||||
}
|
}
|
||||||
|
|
||||||
name, err := row.GetName()
|
name, err := row.GetName()
|
||||||
|
Loading…
Reference in New Issue
Block a user