Merge pull request #261 from adamschwartz/master
Fix typo "Unkown" => "Unknown"
This commit is contained in:
commit
691c152387
|
@ -66,7 +66,7 @@ function convertNullToNotFoundError(ctx, cb) {
|
||||||
|
|
||||||
var modelName = ctx.method.sharedClass.name;
|
var modelName = ctx.method.sharedClass.name;
|
||||||
var id = ctx.getArgByName('id');
|
var id = ctx.getArgByName('id');
|
||||||
var msg = 'Unkown "' + modelName + '" id "' + id + '".';
|
var msg = 'Unknown "' + modelName + '" id "' + id + '".';
|
||||||
var error = new Error(msg);
|
var error = new Error(msg);
|
||||||
error.statusCode = error.status = 404;
|
error.statusCode = error.status = 404;
|
||||||
cb(error);
|
cb(error);
|
||||||
|
|
Loading…
Reference in New Issue