Skip to content

Commit

Permalink
[FAB-5597] typos in doc and log messages
Browse files Browse the repository at this point in the history
Change-Id: If5546018198c7fafee801dff47eaa21aaa7549da
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Aug 18, 2017
1 parent 524edee commit d8c05c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fabric-client/lib/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ var Channel = class {
if(Number.isInteger(blockNumber) && blockNumber >= 0) {
block_number = blockNumber.toString();
} else {
return Promise.reject( new Error('Block number must be a postive integer'));
return Promise.reject( new Error('Block number must be a positive integer'));
}
var peer = this._getPeerForQuery(target);
if (peer instanceof Error) {
Expand Down
2 changes: 1 addition & 1 deletion fabric-client/lib/EventHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ var ChainCodeCBE = class {
* transactionId,
* (tx, code) => {
* eh.unregisterTxEvent(transactionId);
* console.log(util.format('Transaction %s has completed', transactionId);
* console.log(util.format('Transaction %s has completed', transactionId));
* },
* (err) => {
* eh.unregisterTxEvent(transactionId);
Expand Down
8 changes: 4 additions & 4 deletions test/unit/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ test('\n\n ** Channel query tests', function(t) {
t.end();
},
function(err) {
var errMessage = 'Error: Block number must be a postive integer';
var errMessage = 'Error: Block number must be a positive integer';
if(err.toString() == errMessage) t.pass(errMessage);
else t.fail(errMessage);
return _channel.queryBlock();
Expand All @@ -210,7 +210,7 @@ test('\n\n ** Channel query tests', function(t) {
t.end();
},
function(err) {
var errMessage = 'Error: Block number must be a postive integer';
var errMessage = 'Error: Block number must be a positive integer';
if(err.toString() == errMessage) t.pass(errMessage);
else t.fail(errMessage);
return _channel.queryBlock(-1);
Expand All @@ -221,7 +221,7 @@ test('\n\n ** Channel query tests', function(t) {
t.end();
},
function(err) {
var errMessage = 'Error: Block number must be a postive integer';
var errMessage = 'Error: Block number must be a positive integer';
if(err.toString() == errMessage) t.pass(errMessage);
else t.fail(errMessage);
return _channel.queryBlock(10.5);
Expand All @@ -232,7 +232,7 @@ test('\n\n ** Channel query tests', function(t) {
t.end();
},
function(err) {
var errMessage = 'Error: Block number must be a postive integer';
var errMessage = 'Error: Block number must be a positive integer';
if(err.toString() == errMessage) t.pass(errMessage);
else t.fail(errMessage);
t.end();
Expand Down

0 comments on commit d8c05c1

Please sign in to comment.