You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by ie...@apache.org on 2018/12/05 17:24:39 UTC

[avro] branch master updated: Fix typo in error messages (Unknown instead of Uknown)

This is an automated email from the ASF dual-hosted git repository.

iemejia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new de5d8eb  Fix typo in error messages (Unknown instead of Uknown)
de5d8eb is described below

commit de5d8ebc897407eda369cbbab1facff61076e780
Author: Quentin Burny <qb...@hubee.tv>
AuthorDate: Mon Feb 26 14:59:44 2018 +0100

    Fix typo in error messages (Unknown instead of Uknown)
---
 lang/php/lib/avro/data_file.php | 2 +-
 lang/php/lib/avro/datum.php     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lang/php/lib/avro/data_file.php b/lang/php/lib/avro/data_file.php
index e8e089f..57e1e11 100644
--- a/lang/php/lib/avro/data_file.php
+++ b/lang/php/lib/avro/data_file.php
@@ -242,7 +242,7 @@ class AvroDataIOReader
     $codec = AvroUtil::array_value($this->metadata, 
                                    AvroDataIO::METADATA_CODEC_ATTR);
     if ($codec && !AvroDataIO::is_valid_codec($codec))
-      throw new AvroDataIOException(sprintf('Uknown codec: %s', $codec));
+      throw new AvroDataIOException(sprintf('Unknown codec: %s', $codec));
 
     $this->block_count = 0;
     // FIXME: Seems unsanitary to set writers_schema here.
diff --git a/lang/php/lib/avro/datum.php b/lang/php/lib/avro/datum.php
index ea275fa..52f3ce3 100644
--- a/lang/php/lib/avro/datum.php
+++ b/lang/php/lib/avro/datum.php
@@ -132,7 +132,7 @@ class AvroIODatumWriter
       case AvroSchema::UNION_SCHEMA:
         return $this->write_union($writers_schema, $datum, $encoder);
       default:
-        throw new AvroException(sprintf('Uknown type: %s',
+        throw new AvroException(sprintf('Unknown type: %s',
                                         $writers_schema->type));
     }
   }
@@ -782,7 +782,7 @@ class AvroIODatumReader
       case AvroSchema::REQUEST_SCHEMA:
         return $decoder->skip_record($writers_schema, $decoder);
       default:
-        throw new AvroException(sprintf('Uknown schema type: %s',
+        throw new AvroException(sprintf('Unknown schema type: %s',
                                         $writers_schema->type()));
     }
   }