--- parser3/src/main/pa_request.C 2010/11/22 22:24:23 1.325 +++ parser3/src/main/pa_request.C 2011/01/31 09:05:45 1.326 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_REQUEST_C="$Date: 2010/11/22 22:24:23 $"; +static const char * const IDENT_REQUEST_C="$Date: 2011/01/31 09:05:45 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -568,6 +568,11 @@ void Request::use_file(VStateless_class& const String& file_name, const String* use_filespec/*absolute*/) { + if(file_name.is_empty()) + throw Exception(PARSER_RUNTIME, + 0, + "usage failed - no filename was specified"); + const String* filespec=0; if(file_name.first_char()=='/') //absolute path? [no need to scan MAIN:CLASS_PATH]