mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
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:
parent
7fc917d330
commit
52473d5c92
@ -29,7 +29,14 @@ package main;
|
||||
|
||||
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 ########################################################
|
||||
sub Nmap_Initialize($);
|
||||
|
Loading…
x
Reference in New Issue
Block a user