Yoji SHIDARA
null+****@clear*****
Tue Dec 18 14:33:46 JST 2012
Yoji SHIDARA 2012-12-18 14:33:46 +0900 (Tue, 18 Dec 2012) New Revision: 9f188701240ac5c2bcd8f3ccea4964df7c252af6 https://github.com/groonga/gcs/commit/9f188701240ac5c2bcd8f3ccea4964df7c252af6 Log: Tell user about format detected and expected Modified files: lib/client.js test/gcs-commands.test.js Modified: lib/client.js (+1 -1) =================================================================== --- lib/client.js 2012-12-18 13:43:39 +0900 (0a63f11) +++ lib/client.js 2012-12-18 14:33:46 +0900 (c24517a) @@ -364,7 +364,7 @@ Client.prototype = { format = format[1].toLowerCase(); if (supportedFormats.indexOf(format) < 0) - this.raiseFatalError('Unknown format'); + this.raiseFatalError('Unknown format <' + format + '>. Supported: ' + supportedFormats.join(', ')); return format; }, Modified: test/gcs-commands.test.js (+1 -1) =================================================================== --- test/gcs-commands.test.js 2012-12-18 13:43:39 +0900 (0fdf568) +++ test/gcs-commands.test.js 2012-12-18 14:33:46 +0900 (81d61d5) @@ -1203,7 +1203,7 @@ suite('gcs-post-sdf', function() { message: result.output.stdout }, { code: 1, message: 'Processing: ' + batchFile + '\n' + - 'Unknown format\n' }, + 'Unknown format <txt>. Supported: xml, json\n' }, result.output.stderr); done(); }) -------------- next part -------------- HTML����������������������������... Download