From f2e17354b31fe3ff02f366c2488f488fa3424700 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 17 Jun 2015 05:51:36 +0000 Subject: fmtutil: clearer warning on multiple defined formats git-svn-id: svn://tug.org/texlive/trunk@37583 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/fmtutil.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl index e0c29ab0ae0..35ed5b710b4 100755 --- a/Master/texmf-dist/scripts/texlive/fmtutil.pl +++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl @@ -716,9 +716,12 @@ sub callback_enable_disable_format { if ($alldata->{'merged'}{$fmt}) { my @engs = keys %{$alldata->{'merged'}{$fmt}}; if (($#engs > 0) || ($#engs == -1)) { - print_warning("More engines given for format $fmt.\n"); - print_warning("Possible engines: @engs\n"); - print_warning("Please select one by passing in $fmt/ENGINE\n"); + print_warning("Selected format $fmt not uniquely defined,\n"); + print_warning("possible format/engines combinations:\n"); + for my $e (@engs) { + print_warning(" $fmt/$e (currently " . $alldata->{'merged'}{$fmt}{$e}{'status'} . ")\n"); + } + print_warning("Please select one by fully specifying $fmt/ENGINE\n"); print_warning("No changes done.\n"); return 0; } else { -- cgit v1.2.3