Replace panic calls with proper error handling in resolvers
All panic(fmt.Errorf(...)) calls in the console and trust center GraphQL resolvers are replaced with structured error logging via r.logger.ErrorCtx and gqlutils.Internal(ctx) returns. Mutation resolvers for Create, Update, Upload, Import, and Assess operations now check for validator.ValidationErrors before returning an internal error, surfacing field-level INVALID errors to clients via gqlutils.InvalidValidationErrors. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in: