We were returning None if there was no location, even if we had a subgraph. If there is a subgraph, but no location we still want to return Some and just have a None range, this way the error can still be mapped to the subgraph instead of being treated as a global.
We were returning
None
if there was no location, even if we had a subgraph. If there is a subgraph, but no location we still want to returnSome
and just have aNone
range, this way the error can still be mapped to the subgraph instead of being treated as a global.