diff options
Diffstat (limited to 'commands/bridge_pull.go')
-rw-r--r-- | commands/bridge_pull.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go index bde434cd..692ec5e9 100644 --- a/commands/bridge_pull.go +++ b/commands/bridge_pull.go @@ -96,15 +96,25 @@ func runBridgePull(cmd *cobra.Command, args []string) error { importedIssues := 0 importedIdentities := 0 for result := range events { - if result.Event != core.ImportEventNothing { - fmt.Println(result.String()) - } - switch result.Event { + case core.ImportEventNothing: + // filtered + case core.ImportEventBug: importedIssues++ + fmt.Println(result.String()) + case core.ImportEventIdentity: importedIdentities++ + fmt.Println(result.String()) + + case core.ImportEventError: + if result.Err != context.Canceled { + fmt.Println(result.String()) + } + + default: + fmt.Println(result.String()) } } |