Added fmt.Sprintf for error message