Improved error message for invalid sexp files