Skip to content

Commit

Permalink
removed default duration from erros
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov committed Jun 15, 2023
1 parent 1865b62 commit 6f12c7d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
notification.error({
description: <ReactMarkdown>{error.message}</ReactMarkdown>,
message: 'Interaction error occurred',
duration: null,
});
}
};
Expand Down Expand Up @@ -523,6 +524,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
notification.error({
description: <ReactMarkdown>{error.message}</ReactMarkdown>,
message: 'Tracking error occurred',
duration: null,
});
}
};
Expand Down Expand Up @@ -774,6 +776,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
notification.error({
message: 'Tracker initialization error',
description: <ReactMarkdown>{error.message}</ReactMarkdown>,
duration: null,
});
} finally {
if (hideMessage) hideMessage();
Expand Down Expand Up @@ -827,6 +830,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
notification.error({
message: 'Tracking error',
description: <ReactMarkdown>{error.message}</ReactMarkdown>,
duration: null,
});
} finally {
if (hideMessage) hideMessage();
Expand Down Expand Up @@ -894,6 +898,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
notification.error({
message: 'Could not initialize OpenCV',
description: <ReactMarkdown>{error.message}</ReactMarkdown>,
duration: null,
});
} finally {
hide();
Expand Down Expand Up @@ -1288,6 +1293,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
notification.error({
description: <ReactMarkdown>{error.message}</ReactMarkdown>,
message: 'Detection error occurred',
duration: null,
});
} finally {
this.setState({ fetching: false });
Expand Down

0 comments on commit 6f12c7d

Please sign in to comment.