Skip to content

Commit c946068

Browse files
committed
fix rs operation output
1 parent ffdd089 commit c946068

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/cli/rs.go

+6-11
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,8 @@ func BatchDelete(cmd string, params ...string) {
450450
}
451451

452452
func batchDelete(client rs.Client, entries []rs.EntryPath) {
453-
ret, err := qshell.BatchDelete(client, entries)
454-
if err != nil {
455-
if _, ok := err.(*rpc.ErrorInfo); !ok {
456-
fmt.Println("Batch delete error", err)
457-
return
458-
}
459-
}
453+
ret, _ := qshell.BatchDelete(client, entries)
454+
460455
if len(ret) > 0 {
461456
for i, entry := range entries {
462457
item := ret[i]
@@ -545,7 +540,7 @@ func BatchChgm(cmd string, params ...string) {
545540
func batchChgm(client rs.Client, entries []qshell.ChgmEntryPath) {
546541
ret, err := qshell.BatchChgm(client, entries)
547542
if err != nil {
548-
fmt.Println("Batch chgm error", err)
543+
fmt.Println("Batch chgm error")
549544
}
550545
if len(ret) > 0 {
551546
for i, entry := range entries {
@@ -634,7 +629,7 @@ func BatchRename(cmd string, params ...string) {
634629
func batchRename(client rs.Client, entries []qshell.RenameEntryPath) {
635630
ret, err := qshell.BatchRename(client, entries)
636631
if err != nil {
637-
fmt.Println("Batch rename error", err)
632+
fmt.Println("Batch rename error")
638633
}
639634
if len(ret) > 0 {
640635
for i, entry := range entries {
@@ -727,7 +722,7 @@ func BatchMove(cmd string, params ...string) {
727722
func batchMove(client rs.Client, entries []qshell.MoveEntryPath) {
728723
ret, err := qshell.BatchMove(client, entries)
729724
if err != nil {
730-
fmt.Println("Batch move error", err)
725+
fmt.Println("Batch move error")
731726
}
732727
if len(ret) > 0 {
733728
for i, entry := range entries {
@@ -822,7 +817,7 @@ func BatchCopy(cmd string, params ...string) {
822817
func batchCopy(client rs.Client, entries []qshell.CopyEntryPath) {
823818
ret, err := qshell.BatchCopy(client, entries)
824819
if err != nil {
825-
fmt.Println("Batch move error", err)
820+
fmt.Println("Batch copy error")
826821
}
827822
if len(ret) > 0 {
828823
for i, entry := range entries {

0 commit comments

Comments
 (0)