We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5eb00 commit b9529b7Copy full SHA for b9529b7
src/lib.rs
@@ -40,7 +40,9 @@ pub fn process_transform(program: Program, _metadata: TransformPluginProgramMeta
40
let cwd = &raw_cwd.replace('\\', "/");
41
let path = &raw_path.replace('\\', "/");
42
43
- let relative_path = path.strip_prefix(cwd).unwrap();
+ let relative_path = path
44
+ .strip_prefix(cwd)
45
+ .unwrap_or_else(|| panic!("Unhandled path: cwd: {}, path: {}", cwd, path));
46
47
let dir_type = if relative_path.starts_with("/pages") || relative_path.starts_with("/src/pages")
48
{
0 commit comments