diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-09-16 12:05:10 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-09-16 12:05:10 +0200 |
| commit | c5fcaaf8129325d39e5fa9a6b83984a285a03f1f (patch) | |
| tree | bfbcbd8f3bc40842fa62ac019c7517a91278ec1e /gui/src/shared/logging.ts | |
| parent | 4b9a2c43417d4ea5284d08dc8459589a91093536 (diff) | |
| parent | 4cea60889a5a5cd9cefc76df2afc2af612021e7e (diff) | |
| download | mullvadvpn-c5fcaaf8129325d39e5fa9a6b83984a285a03f1f.tar.xz mullvadvpn-c5fcaaf8129325d39e5fa9a6b83984a285a03f1f.zip | |
Merge branch 'update-typescript'
Diffstat (limited to 'gui/src/shared/logging.ts')
| -rw-r--r-- | gui/src/shared/logging.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/src/shared/logging.ts b/gui/src/shared/logging.ts index d87778bf13..bfde85a9da 100644 --- a/gui/src/shared/logging.ts +++ b/gui/src/shared/logging.ts @@ -56,8 +56,9 @@ export class Logger { try { await maybePromise; } catch (e) { + const error = e as Error; console.error( - `${output.constructor.name}.write: ${e.message}. Original message: ${message}`, + `${output.constructor.name}.write: ${error.message}. Original message: ${message}`, ); } } |
