mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	Merge #363
363: Fix the returned `AscDesc` error r=Kerollmops a=irevoire With my previous PR on the geosearch I erased the change I've introduced with my pre-previous PR about the new error type when we fail to parse the `AscDesc` type. Sorry for that, here is the fix Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
		@@ -156,7 +156,7 @@ impl FromStr for AscDesc {
 | 
				
			|||||||
        match text.rsplit_once(':') {
 | 
					        match text.rsplit_once(':') {
 | 
				
			||||||
            Some((left, "asc")) => Ok(AscDesc::Asc(left.parse()?)),
 | 
					            Some((left, "asc")) => Ok(AscDesc::Asc(left.parse()?)),
 | 
				
			||||||
            Some((left, "desc")) => Ok(AscDesc::Desc(left.parse()?)),
 | 
					            Some((left, "desc")) => Ok(AscDesc::Desc(left.parse()?)),
 | 
				
			||||||
            _ => Err(UserError::InvalidRankingRuleName { name: text.to_string() }),
 | 
					            _ => Err(UserError::InvalidAscDescSyntax { name: text.to_string() }),
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user