Skip to content

Commit 1497187

Browse files
authored
Merge pull request microsoft#186732 from microsoft/tyriar/133542_log_error
Log errors in getTerminalLayoutInfo
2 parents e5c9502 + 13bf590 commit 1497187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/terminal/electron-sandbox/localTerminalBackend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
298298
mark('code/terminal/didSetTerminalLayoutInfo');
299299
this._storageService.remove(TerminalStorageKeys.TerminalLayoutInfo, StorageScope.WORKSPACE);
300300
}
301-
} catch {
302-
// no-op
301+
} catch (e: unknown) {
302+
this._logService.warn('LocalTerminalBackend#getTerminalLayoutInfo Error', e && typeof e === 'object' && 'message' in e ? e.message : e);
303303
}
304304
}
305305

0 commit comments

Comments
 (0)