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

This commit is contained in:
Gitanjali 2022-12-12 17:32:58 +05:30 committed by GitHub
parent 6007f340bf
commit 597ac11c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 12 deletions

View File

@ -36,8 +36,8 @@ 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 });

View File

@ -122,8 +122,8 @@ 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;

View File

@ -23,8 +23,8 @@ 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;

View File

@ -148,8 +148,8 @@ 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 });