Proxying the exception will report the line inside `locationError` as the source, I'd suggest to create a LocationException type and throw here, it achieves the same goal but reports the correct line in the source.