Improve error message when no input document available. Format error messages more nicely when they are printed by dexy command.