@@ -110,7 +110,7 @@ func sendNotification(_ *cobra.Command, _ []string) {
110
110
notificationType , err := icingadsl .ParseNotificationType (cliConfig .IcingaNotificationType )
111
111
112
112
if err != nil {
113
- check .ExitError (err )
113
+ check .ExitError (fmt . Errorf ( "unsupported notification type. Currently supported: Problem/Recovery/Acknowledgement" ) )
114
114
}
115
115
116
116
// Creating an client and connecting to the API
@@ -165,7 +165,7 @@ func sendNotification(_ *cobra.Command, _ []string) {
165
165
case icingadsl .FlappingEnd :
166
166
// Currently no implemented
167
167
default :
168
- check .ExitError (fmt .Errorf ("unsupported notification type" ))
168
+ check .ExitError (fmt .Errorf ("unsupported notification type. Currently supported: Problem/Recovery/Acknowledgement " ))
169
169
}
170
170
171
171
if notificationErr != nil {
@@ -227,7 +227,7 @@ func handleAcknowledgeNotification(ctx context.Context, c *client.Client, ticket
227
227
// If no Zammad Ticket exists, we cannot add an article and thus return an error
228
228
// and notify the user
229
229
if ticket .ID == 0 {
230
- return fmt .Errorf ("no open or new ticket found to add acknowledgement" )
230
+ return fmt .Errorf ("no open or new ticket found to add acknowledgement article to " )
231
231
}
232
232
233
233
a := zammad.Article {
@@ -257,7 +257,7 @@ func handleAcknowledgeNotification(ctx context.Context, c *client.Client, ticket
257
257
// If ticket is closed, reopens the ticket with an article
258
258
func handleRecoveryNotification (ctx context.Context , c * client.Client , ticket zammad.Ticket ) error {
259
259
if ticket .ID == 0 {
260
- return fmt .Errorf ("no open or new ticket found to add recovery" )
260
+ return fmt .Errorf ("no open or new ticket found to add recovery article to " )
261
261
}
262
262
263
263
a := zammad.Article {
0 commit comments