mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-22 04:24:09 +00:00
Error messages deserve good grammar
This commit is contained in:
parent
5f52d07154
commit
d482ea82e7
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user