* CHANGELOG

* typo
This commit is contained in:
Jaco
2022-07-01 14:53:32 +03:00
committed by GitHub
parent c301e7128d
commit 6808eb1925
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ interface PkgJson {
}
function assertResult<T> (value: T | undefined): T {
if (typeof value === 'undefined') {
throw new Error('Api needs to be initialized before using, listen on \'ready\'');
if (value === undefined) {
throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");
}
return value;