put exception message in output