Skip to content

Commit 972c350

Browse files
committed
Add quotes to separate information
1 parent 44da244 commit 972c350

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Source/Formats/ProbeInterface.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ namespace OnixSourcePlugin
121121

122122
if (json == var())
123123
{
124-
Onix1::showWarningMessageBoxAsync("Unable to Parse File", "The file " + file.getFileName().toStdString() + " could not be parsed. " +
125-
"Please ensure that the file exists and is readable.");
124+
Onix1::showWarningMessageBoxAsync("Unable to Parse File", "The file '" + file.getFileName().toStdString() + "' could not be parsed. " +
125+
"Please ensure that the file exists and is in the correct format.");
126126
return false;
127127
}
128128

@@ -136,8 +136,8 @@ namespace OnixSourcePlugin
136136

137137
if (specification.compare(probeInterfaceSpecification) != 0)
138138
{
139-
Onix1::showWarningMessageBoxAsync("Invalid Specification", "The specification listed in the Probe Interface file is " + specification +
140-
", but it is expected to be " + probeInterfaceSpecification + ".");
139+
Onix1::showWarningMessageBoxAsync("Invalid Specification", "The specification listed in the Probe Interface file is '" + specification +
140+
"', but it is expected to be '" + probeInterfaceSpecification + "'.");
141141
return false;
142142
}
143143
}
@@ -164,8 +164,8 @@ namespace OnixSourcePlugin
164164
{
165165
if (!probe->getProperty(Identifier("ndim")).equalsWithSameType(2))
166166
{
167-
Onix1::showWarningMessageBoxAsync("Invalid Number of Dimensions", "Expected this file to contain two dimensions, but found "
168-
+ probe->getProperty(Identifier("ndim")).toString().toStdString() + " instead.");
167+
Onix1::showWarningMessageBoxAsync("Invalid Number of Dimensions", "Expected this file to contain two dimensions, but found `"
168+
+ probe->getProperty(Identifier("ndim")).toString().toStdString() + "` instead.");
169169
return false;
170170
}
171171
}
@@ -181,8 +181,8 @@ namespace OnixSourcePlugin
181181

182182
if (!probe->getProperty(Identifier("si_units")).equalsWithSameType(var(um)))
183183
{
184-
Onix1::showWarningMessageBoxAsync("Unexpected Units Found", "Expected to see units " + um + ", but found "
185-
+ probe->getProperty(Identifier("si_units")).toString().toStdString() + " instead.");
184+
Onix1::showWarningMessageBoxAsync("Unexpected Units Found", "Expected to see units `" + um + "`, but found `"
185+
+ probe->getProperty(Identifier("si_units")).toString().toStdString() + "` instead.");
186186
return false;
187187
}
188188
}

0 commit comments

Comments
 (0)