[Groonga-commit] groonga/gcs [master] Output "Creating..." message only for actual creation

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 15:59:12 JST


SHIMODA Hiroshi	2012-08-06 15:59:12 +0900 (Mon, 06 Aug 2012)

  New Revision: 177e0ee655792aa7bb0df08f2cfa878e965f0506
  https://github.com/groonga/gcs/commit/177e0ee655792aa7bb0df08f2cfa878e965f0506

  Log:
    Output "Creating..." message only for actual creation

  Modified files:
    bin/cs-create-domain

  Modified: bin/cs-create-domain (+2 -2)
===================================================================
--- bin/cs-create-domain    2012-08-06 15:52:06 +0900 (1b639ff)
+++ bin/cs-create-domain    2012-08-06 15:59:12 +0900 (04c92a4)
@@ -20,8 +20,6 @@ if (!program.domainName) {
   return process.exit(1);
 }
 
-console.log('Creating domain [' + program.domainName + ']');
-
 var context = commandLine.getContext(program.databasePath);
 var domain = new commandLine.Domain(program.domainName, context);
 if (domain.exists()) {
@@ -29,6 +27,8 @@ if (domain.exists()) {
   return process.exit(1);
 }
 
+console.log('Creating domain [' + program.domainName + ']');
+
 domain.createSync();
 
 console.log('Domain endpoints are currently being created. ' +
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index