mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
- Properly detect when SCST isn't loaded.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2969 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -225,8 +225,8 @@ sub new {
|
||||
|
||||
my $scstVersion = $self->scstVersion();
|
||||
|
||||
die("Failed to obtain SCST version information. Is the scst module loaded?\n")
|
||||
if ($scstVersion == -1);
|
||||
die("Failed to obtain SCST version information. Are the SCST modules loaded?\n")
|
||||
if (!defined($scstVersion));
|
||||
|
||||
my($major, $minor, $release) = split(/\./, $scstVersion, 3);
|
||||
($release, undef) = split(/\-/, $release) if ($release =~ /\-/);
|
||||
|
||||
Reference in New Issue
Block a user