mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Use croak instead of die in Perl code when appropriate
This commit is contained in:
@@ -7,6 +7,7 @@ package convutils;
|
||||
|
||||
use strict;
|
||||
|
||||
use Carp;
|
||||
use Exporter 'import';
|
||||
|
||||
our @EXPORT =
|
||||
@@ -698,7 +699,7 @@ sub make_charmap
|
||||
{
|
||||
my ($out, $charset, $direction, $verbose) = @_;
|
||||
|
||||
die "unacceptable direction : $direction"
|
||||
croak "unacceptable direction : $direction"
|
||||
if ($direction != TO_UNICODE && $direction != FROM_UNICODE);
|
||||
|
||||
# In verbose mode, print a large comment with the source and comment of
|
||||
@@ -759,7 +760,7 @@ sub make_charmap_combined
|
||||
{
|
||||
my ($charset, $direction) = @_;
|
||||
|
||||
die "unacceptable direction : $direction"
|
||||
croak "unacceptable direction : $direction"
|
||||
if ($direction != TO_UNICODE && $direction != FROM_UNICODE);
|
||||
|
||||
my @combined;
|
||||
|
Reference in New Issue
Block a user