Unifying the error message format. Adding an error
message if the file provided does not exist.