--- parser3/src/include/pa_stylesheet_connection.h 2002/02/08 08:30:14 1.26 +++ parser3/src/include/pa_stylesheet_connection.h 2002/03/27 15:30:35 1.28 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_stylesheet_connection.h,v 1.26 2002/02/08 08:30:14 paf Exp $ + $Id: pa_stylesheet_connection.h,v 1.28 2002/03/27 15:30:35 paf Exp $ */ #ifndef PA_STYLESHEET_CONNECTION_H @@ -81,12 +81,14 @@ private: xsltStylesheet *nstylesheet= xsltParseStylesheetFile(BAD_CAST ffile_spec.cstr(String::UL_FILE_SPEC)); - if(!nstylesheet || xmlHaveGenericErrors()) { + if(xmlHaveGenericErrors()) { GdomeException exc=0; - throw Exception(0, 0, - &ffile_spec, - exc); + throw Exception(&ffile_spec, exc); } + if(!nstylesheet) + throw Exception("file.missing", + &ffile_spec, + "stylesheet failed to load"); xsltFreeStylesheet(fstylesheet); fstylesheet=nstylesheet; @@ -96,7 +98,7 @@ private: time_t get_disk_time() { size_t size; time_t atime, mtime, ctime; - String stamp_file_spec(ffile_spec); + String stamp_file_spec(ffile_spec); stamp_file_spec << STYLESHEET_FILENAME_STAMP_SUFFIX; // {file_spec}.stamp modification time OR {file_spec} const String& stat_file_spec=file_readable(stamp_file_spec)?stamp_file_spec:ffile_spec;