Skip to content

Commit 4149efd

Browse files
fix error formatting
1 parent 7cc65fe commit 4149efd

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/browser-repl/src/components/shell-output-line.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const shellOutputLine = css({
1919
});
2020

2121
const shellOutputLineError = css({
22-
backgroundColor: palette.red.light2,
23-
color: palette.red.dark3,
22+
backgroundColor: 'inherit',
23+
color: palette.red.light1,
2424
});
2525

2626
const shellOutputLineIcon = css({

packages/browser-repl/src/components/types/error-output.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import { isShouldReportAsBugError } from '@mongosh/errors';
4+
import { css, cx, palette } from '@mongodb-js/compass-components';
45

56
import { SimpleTypeOutput } from './simple-type-output';
67
import { Expandable } from '../utils/expandable';
@@ -10,6 +11,14 @@ interface ErrorOutputProps {
1011
value: any;
1112
}
1213

14+
const errInfo = css({
15+
pre: {
16+
borderLeft: '3px solid',
17+
paddingLeft: '0px',
18+
borderColor: palette.red.light2,
19+
},
20+
});
21+
1322
export class ErrorOutput extends Component<ErrorOutputProps> {
1423
static propTypes = {
1524
value: PropTypes.any,
@@ -87,7 +96,7 @@ export class ErrorOutput extends Component<ErrorOutputProps> {
8796
return (
8897
<div>
8998
{this.renderCollapsed(toggle)}
90-
<div>
99+
<div className={cx(errInfo)}>
91100
{this.formatErrorBugReportInfo()}
92101
{this.formatErrorInfo()}
93102
{this.formatErrorResult()}

0 commit comments

Comments
 (0)