Fix: add context parameters into the error message (#3159)

Signed-off-by: zeed-w-beez <zeed.w.zhao@gmail.com>
(cherry picked from commit 170888063d)

Co-authored-by: zeed-w-beez <zeed.w.zhao@gmail.com>
This commit is contained in:
github-actions[bot]
2022-01-25 13:28:01 +08:00
committed by GitHub
co-authored by zeed-w-beez
parent cebeff867a
commit e9f7cf7c23
+1 -1
View File
@@ -35,7 +35,7 @@ func (p *Parser) ValidateCUESchematicAppfile(a *Appfile) error {
}
pCtx, err := newValidationProcessContext(wl, a.Name, a.AppRevisionName, a.Namespace)
if err != nil {
return errors.WithMessage(err, "cannot create validationg process context")
return errors.WithMessagef(err, "cannot create the validation process context of app=%s in namespace=%s", a.Name, a.Namespace)
}
for _, tr := range wl.Traits {
if tr.CapabilityCategory != types.CUECategory {