Fix error message when pty is needed