aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/bridge_pull.go18
1 files changed, 14 insertions, 4 deletions
diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go
index 67f19024..2dd3d93e 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())
}
}