[Groonga-commit] groonga/gcs [master] Fix error message for validation error about too long domain name

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Mon Nov 5 16:18:34 JST 2012


YUKI Hiroshi	2012-11-05 16:18:34 +0900 (Mon, 05 Nov 2012)

  New Revision: d3039159d2adde639635d87e5fec199d1df77ca9
  https://github.com/groonga/gcs/commit/d3039159d2adde639635d87e5fec199d1df77ca9

  Log:
    Fix error message for validation error about too long domain name

  Modified files:
    lib/database/domain.js
    test/database-domain.test.js

  Modified: lib/database/domain.js (+1 -1)
===================================================================
--- lib/database/domain.js    2012-11-05 16:16:22 +0900 (b210417)
+++ lib/database/domain.js    2012-11-05 16:18:34 +0900 (d2a2964)
@@ -83,7 +83,7 @@ function assertValidDomainName(domain) {
                 'than or equal to ' + MINIMUM_NAME_LENGTH);
 
   if (domain.length > MAXIMUM_NAME_LENGTH)
-    errors.push(commonPrefix + 'Member must have length smaller ' +
+    errors.push(commonPrefix + 'Member must have length less ' +
                 'than or equal to ' + MAXIMUM_NAME_LENGTH);
 
   if (errors.length) {

  Modified: test/database-domain.test.js (+1 -1)
===================================================================
--- test/database-domain.test.js    2012-11-05 16:16:22 +0900 (8c27fff)
+++ test/database-domain.test.js    2012-11-05 16:18:34 +0900 (593fa15)
@@ -74,7 +74,7 @@ suite('database', function() {
         var domain = new Domain(name);
       }, '1 validation error detected: ' +
            'Value \'' + name + '\' at \'domainName\' failed to satisfy constraint: ' +
-             'Member must have length smaller than or equal to ' +
+             'Member must have length less than or equal to ' +
                Domain.MAXIMUM_NAME_LENGTH);
     });
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る