(msg): Die with backtrace if requested.
* automake.in: Enable `backtrace' on the `automake' channel.
2002-09-10 Alexandre Duret-Lutz <duret_g@epita.fr>
+ * lib/Automake/Channels.pm (_default_options): Add `backtrace'.
+ (msg): Die with backtrace if requested.
+ * automake.in: Enable `backtrace' on the `automake' channel.
+
* automake.in (process_option_list): Mention `Automake' in
version-mismatch error.
Suggested by Akim Demaille.
# Errors related to GNITS Standards (silent by default).
register_channel 'error-gnits', type => 'error', silent => 1;
# Internal errors.
-register_channel 'automake', type => 'fatal',
+register_channel 'automake', type => 'fatal', backtrace => 1,
header => ("####################\n" .
"## Internal Error ##\n" .
"####################\n"),
A string to append to each message emitted through this channel.
+=item C<backtrace =E<gt> 0>
+
+Die with a stack backtrace after displaying the message.
+
=back
=cut
uniq_part => UP_LOC_TEXT,
header => '',
footer => '',
+ backtrace => 0,
);
# Filled with output messages as keys, to detect duplicates.
}
# Die on fatal messages.
+ confess if $opts{'backtrace'};
exit $exit_code if $opts{'type'} eq 'fatal';
}
}