fix provider info message

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-05-12 11:44:04 +02:00 committed by Guillaume Lours
parent 22f8a7009f
commit ed81185c5c

View File

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