Changing error messages

Made changes to the way error messages are displayed if a file can’t be
loaded.