diff --git a/lib/WebGUI/AssetExportHtml.pm b/lib/WebGUI/AssetExportHtml.pm index 60dae89eb..e6c08c981 100644 --- a/lib/WebGUI/AssetExportHtml.pm +++ b/lib/WebGUI/AssetExportHtml.pm @@ -192,7 +192,6 @@ sub exportAsHtml { my $startTime = $session->datetime->time; # before even looking at the parameters, make sure the exportPath is valid. - my $exportPath = $session->config->get('exportPath'); eval { WebGUI::Asset->exportCheckPath($session) }; # something went wrong. we don't really care what at this point. we did @@ -204,6 +203,9 @@ sub exportAsHtml { return ($returnCode, $message); } + # if we're still here, then the exportPath is valid. + my $exportPath = $session->config->get('exportPath'); + # get parameters my $args = shift; my $quiet = $args->{quiet};