Add vendor assessment agent

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-04-22 22:36:14 +02:00
parent 25c590ffe6
commit 509d0c88b1
108 changed files with 9445 additions and 645 deletions

View File

@@ -187,3 +187,17 @@ func Internal(ctx context.Context) *gqlerror.Error {
},
}
}
func Unavailable(ctx context.Context, err error) *gqlerror.Error {
return &gqlerror.Error{
Message: err.Error(),
Path: graphql.GetPath(ctx),
Extensions: map[string]any{
"code": "UNAVAILABLE",
},
}
}
func Unavailablef(ctx context.Context, format string, a ...any) *gqlerror.Error {
return Unavailable(ctx, fmt.Errorf(format, a...))
}