null+****@clear*****
null+****@clear*****
2012年 7月 27日 (金) 18:26:09 JST
Kouhei Sutou 2012-07-27 18:26:09 +0900 (Fri, 27 Jul 2012) New Revision: 55cfd5593de6e57d14cb16e15111c0e585dfd656 https://github.com/groonga/gcs/commit/55cfd5593de6e57d14cb16e15111c0e585dfd656 Log: Add a missing space between "catch" and "(" Modified files: lib/api/2011-02-01/batch.js lib/api/2011-02-01/configuration.js lib/batch/processor.js lib/database/domain.js Modified: lib/api/2011-02-01/batch.js (+1 -1) =================================================================== --- lib/api/2011-02-01/batch.js 2012-07-27 18:25:20 +0900 (dad7116) +++ lib/api/2011-02-01/batch.js 2012-07-27 18:26:09 +0900 (6e21a2b) @@ -52,7 +52,7 @@ exports.createHandler = function(context) { try { processor.validate(batches); - } catch(error) { + } catch (error) { return response.send(JSON.stringify(error.result)); } Modified: lib/api/2011-02-01/configuration.js (+6 -6) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-07-27 18:25:20 +0900 (fe63927) +++ lib/api/2011-02-01/configuration.js 2012-07-27 18:26:09 +0900 (fcab6b8) @@ -90,7 +90,7 @@ handlers.CreateDomain = function(context, request, response) { searchPartitionCount: 0, requiresIndexDocuments: false })); - } catch(error) { + } catch (error) { var body = createCommonErrorResponse('InternalFailure', error); response.contentType('application/xml'); response.send(body, 400); @@ -128,7 +128,7 @@ handlers.DeleteDomain = function(context, request, response) { searchPartitionCount: 0, requiresIndexDocuments: false })); - } catch(error) { + } catch (error) { var body = createCommonErrorResponse('InternalFailure', error.message); response.contentType('application/xml'); response.send(body, 400); @@ -214,7 +214,7 @@ handlers.DefineIndexField = function(context, request, response) { createdAt: createdAt, updatedAt: createdAt })); - } catch(error) { + } catch (error) { var body = createCommonErrorResponse('InternalFailure', error.message); response.contentType('application/xml'); response.send(body, 400); @@ -241,7 +241,7 @@ handlers.DeleteIndexField = function(context, request, response) { field.deleteSync(); response.contentType('application/xml'); response.send(createDeleteIndexFieldResponse({})); - } catch(error) { + } catch (error) { var body = createCommonErrorResponse('InternalFailure', error.message); response.contentType('application/xml'); response.send(body, 400); @@ -281,7 +281,7 @@ handlers.IndexDocuments = function(context, request, response) { response.send(createIndexDocumentsResponse({ fieldNames: indexFieldNames })); - } catch(error) { + } catch (error) { var body = createCommonErrorResponse('InternalFailure', error.message); response.contentType('application/xml'); response.send(body, 400); @@ -327,7 +327,7 @@ handlers.UpdateSynonymOptions = function(context, request, response) { updatedAt: updatedAt, createdAt: updatedAt })); - } catch(error) { + } catch (error) { var body = createCommonErrorResponse('InternalFailure', error.message); response.contentType('application/xml'); response.send(body, 400); Modified: lib/batch/processor.js (+1 -1) =================================================================== --- lib/batch/processor.js 2012-07-27 18:25:20 +0900 (861c6b6) +++ lib/batch/processor.js 2012-07-27 18:26:09 +0900 (5b8f0e3) @@ -53,7 +53,7 @@ Processor.prototype = { try { fieldName = this.domain.getIndexField(field).name; - } catch(error) { + } catch (error) { errors.push(batch.id + ': ' + error.message); continue; } Modified: lib/database/domain.js (+1 -1) =================================================================== --- lib/database/domain.js 2012-07-27 18:25:20 +0900 (5708170) +++ lib/database/domain.js 2012-07-27 18:26:09 +0900 (75bc049) @@ -166,7 +166,7 @@ Domain.prototype = { this.context.commandSync('table_remove', { table: this.synonymTableName }); - } catch(error) { + } catch (error) { // The synonym table should be inexistent. Do nothing. } -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Télécharger