get output for error