check Marshal error

This commit is contained in:
zzxwill
2020-08-05 11:28:45 +08:00
parent 6210fef049
commit 9c8c59ab2c

View File

@@ -44,10 +44,11 @@ func printApplicationStatus(ctx context.Context, c client.Client, ioStreams cmdu
if err != nil {
return err
}
// TODO(zzxwill) When application.Trait.Name is "", find a way not to print trait status
out, err := yaml.Marshal(application)
if err != nil {
return err
}
ioStreams.Info(string(out))
return nil
}