mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Print proper error if include file can't be found.
This commit is contained in:
@ -57,6 +57,10 @@ sub ODL2IDL
|
||||
if ($x->{TYPE} eq "IMPORT") {
|
||||
foreach my $idl_file (@{$x->{PATHS}}) {
|
||||
$idl_file = unmake_str($idl_file);
|
||||
unless (-f "$basedir/$idl_file") {
|
||||
error($x, "Unable to open include file `$idl_file'");
|
||||
next;
|
||||
}
|
||||
my $podl = Parse::Pidl::IDL::parse_file("$basedir/$idl_file", $opt_incdirs);
|
||||
if (defined(@$podl)) {
|
||||
require Parse::Pidl::Typelist;
|
||||
|
Reference in New Issue
Block a user