use ghcError for error in command line