handle error if no graph path