diff --git a/client/command/filesystem/memfiles-rm.go b/client/command/filesystem/memfiles-rm.go index 169b3ec0ad..ca9a0bb01d 100644 --- a/client/command/filesystem/memfiles-rm.go +++ b/client/command/filesystem/memfiles-rm.go @@ -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,