fix: #2964 Reword message for segmentation error loading due to orientation tolerance (#3017)

This commit is contained in:
Gitanjali authored and GitHub committed 2022-12-12 17:47:58 +05:45
1 parent 6007f340bf
commit 597ac11c4d
4 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -36,9 +36,9 @@ export default {
const message = const message =
error.message.includes('orthogonal') || error.message.includes('orthogonal') ||
error.message.includes('oblique') error.message.includes('oblique')
? 'The segmentation has been detected as not planar,\ ? 'The segmentation has been detected as non coplanar,\
If you really think it is planar,\ If you really think it is coplanar,\
please adjust the tolerance in the segmentation panel settings (at your own peril!)' please adjust the tolerance in the segmentation panel settings (at your own peril!)'
: error.message; : error.message;
LoggerService.error({ error, message }); LoggerService.error({ error, message });
UINotificationService.show({ UINotificationService.show({
@@ -122,9 +122,9 @@ async function loadAndCacheDerivedDisplaySets(
const message = const message =
error.message.includes('orthogonal') || error.message.includes('orthogonal') ||
error.message.includes('oblique') error.message.includes('oblique')
? 'The segmentation has been detected as not planar,\ ? 'The segmentation has been detected as non coplanar,\
If you really think it is planar,\ If you really think it is coplanar,\
please adjust the tolerance in the segmentation panel settings (at your own peril!)' please adjust the tolerance in the segmentation panel settings (at your own peril!)'
: error.message; : error.message;
logger.error({ error, message }); logger.error({ error, message });
@@ -23,9 +23,9 @@ const mapDispatchToProps = (dispatch, ownProps) => {
const message = const message =
error.message.includes('orthogonal') || error.message.includes('orthogonal') ||
error.message.includes('oblique') error.message.includes('oblique')
? 'The segmentation has been detected as not planar,\ ? 'The segmentation has been detected as non coplanar,\
If you really think it is planar,\ If you really think it is coplanar,\
please adjust the tolerance in the segmentation panel settings (at your own peril!)' please adjust the tolerance in the segmentation panel settings (at your own peril!)'
: error.message; : error.message;
LoggerService.error({ error, message }); LoggerService.error({ error, message });
@@ -148,9 +148,9 @@ class ViewerMain extends Component {
const message = const message =
error.message.includes('orthogonal') || error.message.includes('orthogonal') ||
error.message.includes('oblique') error.message.includes('oblique')
? 'The segmentation has been detected as not planar,\ ? 'The segmentation has been detected as non coplanar,\
If you really think it is planar,\ If you really think it is coplanar,\
please adjust the tolerance in the segmentation panel settings (at your own peril!)' please adjust the tolerance in the segmentation panel settings (at your own peril!)'
: error.message; : error.message;
LoggerService.error({ error, message }); LoggerService.error({ error, message });
UINotificationService.show({ UINotificationService.show({