Change error function arguments to follow Emacs