Fix for parsing error object

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2020-10-12 10:06:22 +03:00
1 parent 9afcf6ceb8
commit 80df0da00b
2 files changed
+3 -3

No files matched your search

@@ -73,7 +73,7 @@ export class PodLogsStore extends DockTabStore<IPodLogsData> {
} else {
this.logs.set(tabId, { oldLogs, newLogs: loadedLogs });
}
} catch (error) {
} catch ({error}) {
this.logs.set(tabId, {
oldLogs: [
_i18n._(t`Failed to load logs: ${error.message}`),
+2 -2
View File
@@ -183,13 +183,13 @@ export class PodLogs extends React.Component<Props> {
<Icon
material="av_timer"
onClick={this.toggleTimestamps}
className={cssNames({ active: showTimestamps })}
className={cssNames("timestamps-icon", { active: showTimestamps })}
tooltip={(showTimestamps ? _i18n._(t`Hide`) : _i18n._(t`Show`)) + " " + _i18n._(t`timestamps`)}
/>
<Icon
material="undo"
onClick={this.togglePrevious}
className={cssNames({ active: previous })}
className={cssNames("undo-icon", { active: previous })}
tooltip={(previous ? _i18n._(t`Show current logs`) : _i18n._(t`Show previous terminated container logs`))}
/>
<Icon