Browse Source

fix provider info message

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 6 months ago
parent
commit
ed81185c5c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/compose/plugins.go

+ 2 - 2
pkg/compose/plugins.go

@@ -113,10 +113,10 @@ func (s *composeService) executePlugin(ctx context.Context, cmd *exec.Cmd, comma
 		}
 		switch msg.Type {
 		case ErrorType:
-			pw.Event(progress.ErrorMessageEvent(service.Name, "error"))
+			pw.Event(progress.NewEvent(service.Name, progress.Error, msg.Message))
 			return nil, errors.New(msg.Message)
 		case InfoType:
-			pw.Event(progress.ErrorMessageEvent(service.Name, msg.Message))
+			pw.Event(progress.NewEvent(service.Name, progress.Working, msg.Message))
 		case SetEnvType:
 			key, val, found := strings.Cut(msg.Message, "=")
 			if !found {