fix error message on missing source location
Merge pull request #803 from vitoshka/master

fix error message on missing source location