It should raise an exception when both `pattern` and `path` are defined. Or at least favor `path` over pattern (currently the other way round).