diff -Nru pet-0.99.14.orig/cheap/cheap.cpp pet-0.99.14/cheap/cheap.cpp --- pet-0.99.14.orig/cheap/cheap.cpp 2008-08-18 00:04:32.000000000 +0900 +++ pet-0.99.14/cheap/cheap.cpp 2008-08-18 17:48:14.000000000 +0900 @@ -438,7 +438,11 @@ char *name = cheap_settings->value("vpm"); if(name) { string file = find_file(name, ".vpm", s); - mrs_initialize(s, file.c_str()); + if(file.empty()) { + fprintf(ferr, "\n%s.vpm not found\n", name); + exit(1); + } + mrs_initialize(s, file.c_str()); } else mrs_initialize(s, NULL); #endif @@ -447,7 +451,11 @@ char *name2 = cheap_settings->value("vpm"); if (name2) { string file = find_file(name2, ".vpm", s); - vpm->read_vpm(file); + if(file.empty()) { + fprintf(ferr, "\n%s.vpm not found\n", name2); + exit(1); + } + vpm->read_vpm(file); } #ifdef HAVE_ECL