Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hugefiver committed Jul 19, 2024
1 parent faf98b6 commit 85f141d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/fakeshell/fakeshell.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func runCmd(runner *cmds.CommandRunner, cmd *parser.Command) (errmsg string, err
return "", cmds.CmdEnv(runner, cmd.Args...)
default:
if PathPatt.MatchString(cmd.Name) {
return fmt.Sprintf("%s"), errors.New("failed to execute relastfile")
return fmt.Sprintf("permission denied: %s", cmd.Name), errors.New("failed to execute relastfile")
}
return fmt.Sprintf("unknown command: %s", cmd.Name), errors.New("unknown command")
}
Expand Down

0 comments on commit 85f141d

Please sign in to comment.