Add error message when no file is loaded