aboutsummaryrefslogtreecommitdiff
path: root/awwan.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-04-06 01:53:49 +0700
committerShulhan <ms@kilabit.info>2024-04-06 01:53:49 +0700
commit490dcc6ec98d065a7b1a81016adae13e11454984 (patch)
tree8035d753ef4420f3c6d8a4b460257af55854226b /awwan.go
parentf123985b0a028ecdfd08010cd9d38a95388e2c12 (diff)
downloadawwan-490dcc6ec98d065a7b1a81016adae13e11454984.tar.xz
all: comply with linter recommendations
Diffstat (limited to 'awwan.go')
-rw-r--r--awwan.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/awwan.go b/awwan.go
index 6ea9d1b..ae060d8 100644
--- a/awwan.go
+++ b/awwan.go
@@ -24,13 +24,13 @@ var Version = `0.12.0`
// osGetwd define the handler to get current working directory.
//
-// This variable will be overriden in testing to test running awwan in sub
+// This variable will be overridden in testing to test running awwan in sub
// directory of workspace.
var osGetwd = os.Getwd
// timeNow define a function that return the current time.
//
-// This variable will be overriden in testing to mock time.
+// This variable will be overridden in testing to mock time.
var timeNow = time.Now
// List of command available for program awwan.
@@ -476,7 +476,7 @@ out:
}
if err != nil {
req.mlog.Errf(`!!! %s`, err)
- err = fmt.Errorf(`%s: %s`, logp, err)
+ err = fmt.Errorf(`%s: %w`, logp, err)
}
req.close()
return err