Added more verbose error messages to terminalInput module.