Yesterday Calguy suggested me in IRC:
Code: Select all
return array(FALSE, $errmsg);
To use
Code: Select all
echo $this->ShowErrors($errmsg);
Somebody has an idea to display errors during module install?
Code: Select all
return array(FALSE, $errmsg);
Code: Select all
echo $this->ShowErrors($errmsg);
Code: Select all
return array(FALSE, 'install-error!');
Thx Calguy1000it's a bug, I'll fix it in 1.7.1
but then in the method.install.php you will have to use a temporary variable to return an error
i.e:Code: Select all
$tmp = 'This is an error message'; return $tmp;
Code: Select all
$tmp = $this->Lang('installerror');
return $tmp;
Code: Select all
$tmp = 'An error occurred during installation';
return $tmp;
Code: Select all
die($this->Lang('installerror'));