fix error message on missing source location