Return -1 when get_path fails