gin.Error doesn't implement Unwrap method for non-pointers
gin.Error doesn't implement Unwrap method for non-pointers: a task in swe-rebench-v2.1-rl-isolated-1k: SWE-rebench V2.1 RL, isolated grading (1k subset) (Harbor dataset). func main() { err := gin.Error{Err: errors.New("test error")} fmt.Println(errors.Unwrap(err)) // prints nil…
The task
func main() { err := gin.Error{Err: errors.New("test error")} fmt.Println(errors.Unwrap(err)) // prints nil fmt.Println(errors.Unwrap(&err)) // prints "test error" correctly } ```