From: Dagfinn Ilmari Mannsåker Date: Sun, 17 Mar 2013 18:38:50 +0000 (+0000) Subject: Fix typos in error messages X-Git-Tag: v0.011017~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fb7b9dba4a6f21335bd7ceee670b287eee3954e3;p=dbsrgits%2FSQL-Translator.git Fix typos in error messages --- diff --git a/Changes b/Changes index 1ba6d2a..d37a7b4 100644 --- a/Changes +++ b/Changes @@ -6,6 +6,7 @@ * Fix Pg diff issue with drop constraint on primary keys * SQLite support for SET NULL, SET DEFAULT and NO ACTION in FK clauses * Clean up properly after Parser::DBI::PostgreSQL tests +* Fix typos in error messages # ---------------------------------------------------------- # 0.11016 2012-10-09 diff --git a/lib/SQL/Translator/Schema.pm b/lib/SQL/Translator/Schema.pm index 1f5e6ac..1006904 100644 --- a/lib/SQL/Translator/Schema.pm +++ b/lib/SQL/Translator/Schema.pm @@ -160,7 +160,7 @@ can be set to 1 to also drop all triggers on the table, default is 0. my $cascade = $args{'cascade'}; if ( !exists $self->_tables->{$table_name} ) { - return $self->error(qq[Can't drop table: $table_name" doesn't exist]); + return $self->error(qq[Can't drop table: "$table_name" doesn't exist]); } my $table = delete $self->_tables->{$table_name}; @@ -252,7 +252,7 @@ object. if ( !exists $self->_procedures->{$proc_name} ) { return $self->error( - qq[Can't drop procedure: $proc_name" doesn't exist]); + qq[Can't drop procedure: "$proc_name" doesn't exist]); } my $proc = delete $self->_procedures->{$proc_name}; @@ -335,7 +335,7 @@ trigger name or an C object. if ( !exists $self->_triggers->{$trigger_name} ) { return $self->error( - qq[Can't drop trigger: $trigger_name" doesn't exist]); + qq[Can't drop trigger: "$trigger_name" doesn't exist]); } my $trigger = delete $self->_triggers->{$trigger_name}; @@ -416,7 +416,7 @@ name or an C object. } if ( !exists $self->_views->{$view_name} ) { - return $self->error(qq[Can't drop view: $view_name" doesn't exist]); + return $self->error(qq[Can't drop view: "$view_name" doesn't exist]); } my $view = delete $self->_views->{$view_name}; @@ -571,7 +571,7 @@ Returns a trigger by the name provided. my $self = shift; my $trigger_name = shift or return $self->error('No trigger name'); - return $self->error(qq[Table "$trigger_name" does not exist]) + return $self->error(qq[Trigger "$trigger_name" does not exist]) unless exists $self->_triggers->{$trigger_name}; return $self->_triggers->{$trigger_name}; }