Fail fast if paths and prefixes don't match.