Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
68f2cfbe
Commit
68f2cfbe
authored
Sep 13, 2021
by
Walsh, Michael
Browse files
catch if title prop missing
parent
047f0447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/DataHandling/src/LoadNexusProcessed.cpp
View file @
68f2cfbe
...
...
@@ -1798,8 +1798,12 @@ API::Workspace_sptr LoadNexusProcessed::loadEntry(NXRoot &root, const std::strin
progress
(
progressStart
+
0.2
*
progressRange
,
"Reading the workspace history..."
);
if
(
local_workspace
->
getTitle
().
empty
())
local_workspace
->
setTitle
(
mtd_entry
.
getString
(
"title"
));
try
{
if
(
local_workspace
->
getTitle
().
empty
())
local_workspace
->
setTitle
(
mtd_entry
.
getString
(
"title"
));
}
catch
(
std
::
runtime_error
&
)
{
g_log
.
debug
()
<<
"No title was found in the input file, "
<<
getPropertyValue
(
"Filename"
)
<<
'\n'
;
}
return
std
::
static_pointer_cast
<
API
::
Workspace
>
(
local_workspace
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment