emacs: clean up error reporting function
emacs: clean up error reporting function

haselwarter/merlin,dra27/merlin,rgrinberg/merlin,chriskonstad/merlin,neojski/merlin,haselwarter/merlin,fxfactorial/merlin,the-lambda-church/merlin,ocaml/merlin,chambart/merlin,dra27/merlin,rgrinberg/merlin,fxfactorial/merlin,dra27/merlin,haselwarter/merlin,dra27/merlin,fxfactorial/merlin,haselwarter/merlin,ocaml/merlin,neojski/merlin,chambart/merlin,rgrinberg/merlin,chambart/merlin,chriskonstad/merlin,neojski/merlin,ocaml/merlin,ocaml/merlin,chambart/merlin,the-lambda-church/merlin,the-lambda-church/merlin,rgrinberg/merlin,neojski/merlin,fxfactorial/merlin