diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-08-17 11:24:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:07 -0500 |
commit | 60501f20a72c3c9739184f768899a0132eb765d9 (patch) | |
tree | 7393378b0050af7694d8099009cfb26a20e91c45 /source4/pidl/lib/Parse/Pidl | |
parent | 53cdb93fb73b9ac2414286849f696378fd859523 (diff) | |
download | samba-60501f20a72c3c9739184f768899a0132eb765d9.tar.gz samba-60501f20a72c3c9739184f768899a0132eb765d9.tar.bz2 samba-60501f20a72c3c9739184f768899a0132eb765d9.zip |
r24515: use fatal() wrapper instead of die() directly
metze
(This used to be commit d90a0d3ba1ac18caee08ab3f621b742229a41e45)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/Header.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm b/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm index bcf3693573..52263e848a 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm @@ -7,6 +7,7 @@ package Parse::Pidl::Samba4::Header; use strict; +use Parse::Pidl qw(fatal); use Parse::Pidl::Typelist qw(mapTypeName scalar_is_reference); use Parse::Pidl::Util qw(has_property is_constant); use Parse::Pidl::Samba4 qw(is_intree); @@ -149,13 +150,13 @@ sub HeaderEnum($$) $name = $1; $value = $2; $with_val = 1; - die ("you can't mix enum member with values and without values!") + fatal($e->{ORIGINAL}, "you can't mix enum member with values and without values!") unless ($without_val == 0); } else { $name = $t; $value = $count++; $without_val = 1; - die ("you can't mix enum member with values and without values!") + fatal($e->{ORIGINAL}, "you can't mix enum member with values and without values!") unless ($with_val == 0); } pidl "#define $name ( $value )\n"; |