Throw error rather than wait for TTY input.