Skip to content

Commit 012b45a

Browse files
committed
Added type casting of Error return
1 parent 218564f commit 012b45a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/localStorageService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export class LocalStorageService {
3131
try {
3232
await this._wsState.update(key, value);
3333
} catch (reason) {
34-
Logger.error(reason);
34+
Logger.error(<Error>reason);
3535
}
3636
} else {
3737
try {
3838
await this._globalState.update(key, value);
3939
} catch (reason) {
40-
Logger.error(reason);
40+
Logger.error(<Error>reason);
4141
}
4242
}
4343
}
@@ -47,13 +47,13 @@ export class LocalStorageService {
4747
try {
4848
await this._wsState.update(key, undefined);
4949
} catch (reason) {
50-
Logger.error(reason);
50+
Logger.error(<Error>reason);
5151
}
5252
} else {
5353
try {
5454
await this._globalState.update(key, undefined);
5555
} catch (reason) {
56-
Logger.error(reason);
56+
Logger.error(<Error>reason);
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)