Skip to content

Commit

Permalink
Merge pull request #1440 from alrs/filesystem-cmd-err
Browse files Browse the repository at this point in the history
client/command/filesystem: fix dropped error
  • Loading branch information
moloch-- authored Oct 26, 2023
2 parents 78627a6 + f4beecd commit e4ade4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/command/filesystem/memfiles-rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ func MemfilesRmCmd(cmd *cobra.Command, con *console.SliverConsoleClient, args []
}

fdInt, err := strconv.ParseInt(fdArg, 0, 64)

if err != nil {
con.PrintErrorf("Failed to parse fdArg: %s\n", err)
return
}
memfilesList, err := con.Rpc.MemfilesRm(context.Background(), &sliverpb.MemfilesRmReq{
Request: con.ActiveTarget.Request(cmd),
Fd: fdInt,
Expand Down

0 comments on commit e4ade4e

Please sign in to comment.