Changed module load error - Line #640

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@240 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-01-10 14:34:34 +00:00
parent 88bf8a483c
commit 5acfff0618

View File

@ -636,8 +636,9 @@ sub runcmd {
######################################
# Load specific module
######################################
unless ( eval "require $modname" ) {
return( ["Can't locate $modname"] );
eval "require $modname";
if ( $@ ) {
return( [$@] );
}
######################################
# Invoke method