Last week when I left my comment I didn't notice that this line of code was in the CLI uploader. You'll want to leave the error message in the command line, but in addition, you also want to show an error message in the GUI.