Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Apr 17, 2018
1 parent f3790a5 commit 3493a18
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/renderer/containers/JobFailureDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,21 @@ class JobFailureDialog extends React.Component<DispatchProp<State> & IJobFailure
if (!messageText) {
messageText = `An unknown error occurred (code ${this.props.jobFailure.code}).`;
}
let message = (<p>{this.props.jobTitle}:<br/><strong>{messageText}</strong></p>);
let message = (
<div>
<p>Oops, Cate couldn't carry out the request <em>{this.props.jobTitle}</em> because:</p>
<h6 className="user-selectable">{messageText}</h6>
</div>
);

let traceback;
if (this.props.jobFailure.data && this.props.jobFailure.data.traceback) {
traceback = (
<div style={{marginTop: '0.5em'}}>
<Button onClick={this.handleShowDetails}>{this.state.showDetails ? "Hide" : "Show"} Details</Button>
<Collapse isOpen={this.state.showDetails}>
<pre className="user-selectable" style={{overflow: 'auto', height: '20em'}}>{this.props.jobFailure.data.traceback}</pre>
<pre className="user-selectable"
style={{overflow: 'auto', height: '20em'}}>{this.props.jobFailure.data.traceback}</pre>
</Collapse>
</div>
);
Expand All @@ -125,7 +131,7 @@ class JobFailureDialog extends React.Component<DispatchProp<State> & IJobFailure
reporting = (
<Label
style={{marginTop: '0.5em'}}
text={<span>Please consider reporting this issue in Cate's <a
text={<span className="pt-text-muted">Please consider reporting this issue in Cate's <a
href="https://github.com/CCI-Tools/cate/issues" target="_blank">issue tracker</a>.</span>}
>
<Checkbox label='Copy error report to clipboard'
Expand Down

0 comments on commit 3493a18

Please sign in to comment.