Skip to content

Commit

Permalink
Fix error messages in WellWell::Compose.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Feb 8, 2017
1 parent 29134d5 commit fec1388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WellWell/Compose.pm
Expand Up @@ -118,12 +118,12 @@ sub compose {

if( !$::Variable->{MV_TEMPLATE_DIR} ){
::logError("MV_TEMPLATE_DIR is not set. [compose] cannot function properly without this variable.");
return errmsg('Templates not found, please contact site administrator.');
return ::errmsg('Templates not found, please contact site administrator.');
}

if( !$::Variable->{MV_COMPONENT_DIR} ){
::logError("MV_COMPONENT_DIR is not set. [compose] cannot function properly without this variable.");
return errmsg('Components not found, please contact site administrator.');
return ::errmsg('Components not found, please contact site administrator.');
}

unless( $template_file = $opt->{template_file} ) {
Expand Down

0 comments on commit fec1388

Please sign in to comment.