74_Nmap: return error if Nmap::Parser is not installed
git-svn-id: https://svn.fhem.de/fhem/trunk@13768 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -29,7 +29,14 @@ package main;
|
|||||||
|
|
||||||
use Blocking;
|
use Blocking;
|
||||||
|
|
||||||
use Nmap::Parser;
|
my $rc = eval{
|
||||||
|
require Nmap::Parser;
|
||||||
|
Nmap::Parser->import();
|
||||||
|
1;
|
||||||
|
};
|
||||||
|
|
||||||
|
return("Error loading Nmap::Parser. Maybe this module is not installed?")
|
||||||
|
unless($rc);
|
||||||
|
|
||||||
# forward declarations ########################################################
|
# forward declarations ########################################################
|
||||||
sub Nmap_Initialize($);
|
sub Nmap_Initialize($);
|
||||||
|
|||||||
Reference in New Issue
Block a user