summaryrefslogtreecommitdiff
path: root/plugins/server/command.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-09 10:46:39 +0300
committerValery Piashchynski <[email protected]>2021-06-09 10:46:39 +0300
commit8020cbb83afbaaf4ea4e0321b1b6c24d38332887 (patch)
tree024c9e3540b2f12e940b6b8cc88f8b2a0359a5e9 /plugins/server/command.go
parent0d89115ffed997cc0e3e30681369bf3d2296f377 (diff)
- Add more tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/server/command.go')
-rw-r--r--plugins/server/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/server/command.go b/plugins/server/command.go
index 527cc224..a3752e7b 100644
--- a/plugins/server/command.go
+++ b/plugins/server/command.go
@@ -22,7 +22,7 @@ func (server *Plugin) scanCommand(cmd []string) error {
// try to stat
_, err := os.Stat(cmd[i])
if err != nil {
- return errors.E(op, err)
+ return errors.E(op, errors.FileNotFound, err)
}
// stat successful