Skip to content

Commit

Permalink
Improve debug assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas de Zeeuw committed Jun 19, 2023
1 parent 5905d32 commit d96d998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_cli/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl PackageCache {
package_root: PathBuf,
settings: &Settings,
) -> Result<PackageCache> {
debug_assert!(package_root.is_absolute()); // Our "canonicalized" check.
debug_assert!(package_root.is_absolute(), "package root not canonicalized");

let mut buf = itoa::Buffer::new();
let key = Path::new(buf.format(cache_key(&package_root, settings)));
Expand Down

0 comments on commit d96d998

Please sign in to comment.