File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -292,10 +292,14 @@ var triggerDeleteCmd = &cobra.Command{
292
292
// "could not find trigger /NAMESPACE_ID/TRIGGER_NAME in the database"
293
293
// OR if the feed action is not present, there's no way to clean up the feed
294
294
// "The requested resource does not exist"
295
+ // likewise, if the feed action has no code, there's no way to clean up the feed
296
+ // "Missing main/no code to execute"
295
297
if strings .Contains (err .Error (), "could not find trigger" ) {
296
298
whisk .Debug (whisk .DbgWarn , "trigger feed is already deleted for trigger %s\n " , qualifiedName .GetEntityName ())
297
299
} else if strings .Contains (err .Error (), "The requested resource does not exist" ) {
298
300
whisk .Debug (whisk .DbgWarn , "trigger feed action '%s' does not exist\n " , fullFeedName )
301
+ } else if strings .Contains (err .Error (), "Missing main/no code to execute" ) {
302
+ whisk .Debug (whisk .DbgWarn , "trigger feed action '%s' does not contain valid code\n " , fullFeedName )
299
303
} else {
300
304
errStr := wski18n .T ("Unable to delete trigger '{{.name}}': {{.err}}" ,
301
305
map [string ]interface {}{"name" : qualifiedName .GetEntityName (), "err" : err })
You can’t perform that action at this time.
0 commit comments