Skip to content

Commit

Permalink
client/command/filesystem: fix dropped error
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
  • Loading branch information
alrs committed Oct 24, 2023
1 parent b7d0dcc commit 6f043f8
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 6f043f8

Please sign in to comment.