Skip to content

Commit

Permalink
doc: fix typo 'Can\'t not' => 'Can not' (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamswhite authored and fengmk2 committed Aug 28, 2017
1 parent 7cb4e75 commit 004713c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ proto.update = function* (table, row, options) {
}
if (!options.where) {
if (!('id' in row)) {
throw new Error('Can\'t not auto detect update condition, please set options.where, or make sure obj.id exists');
throw new Error('Can not auto detect update condition, please set options.where, or make sure obj.id exists');
}
options.where = {
id: row.id,
Expand Down
2 changes: 1 addition & 1 deletion test/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ describe('async.test.js', function() {
throw new Error('should not run this');
} catch (err) {
assert.equal(err.message,
'Can\'t not auto detect update condition, please set options.where, or make sure obj.id exists');
'Can not auto detect update condition, please set options.where, or make sure obj.id exists');
}
});

Expand Down
2 changes: 1 addition & 1 deletion test/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ describe('client.test.js', function() {
throw new Error('should not run this');
} catch (err) {
assert.equal(err.message,
'Can\'t not auto detect update condition, please set options.where, or make sure obj.id exists');
'Can not auto detect update condition, please set options.where, or make sure obj.id exists');
}
});

Expand Down

0 comments on commit 004713c

Please sign in to comment.