Error messages deserve good grammar

This commit is contained in:
Scott Kyle 2015-10-19 12:05:41 -07:00
parent 5f52d07154
commit d482ea82e7

View File

@ -48,7 +48,7 @@ class Realm {
throw new TypeError('addNotification method was not called on a Realm object!');
}
if (typeof callback != 'function') {
throw new Error('Realm.addNotification must be passed function!');
throw new Error('Realm.addNotification must be passed a function!');
}
let notification = rpc.callRealmMethod(realmId, 'addNotification', [callback]);