Skip to content

Commit 0add4fd

Browse files
committed
Various messaging updates
1 parent d115462 commit 0add4fd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

base9/Star.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void StellarSystem::readCMD(const string &s, int filters, const Settings &settin
236236

237237
reportStreamFailuresAt("std.deviation");
238238

239-
if (!settings.allowNegativeSigma && sigma < 0)
239+
if (!settings.allowNegativeSigma && (sigma < 0))
240240
{
241241
photometryError("Enable negative sigma values with '--allowNegativeSigma'");
242242
}
@@ -247,7 +247,7 @@ void StellarSystem::readCMD(const string &s, int filters, const Settings &settin
247247
else if (!settings.ignoreLowSigma && (sigma > 0) && (sigma < 0.01)) // 0.01 mag warning limit arbitrary
248248
{
249249
if (!warnedOnce) {
250-
photometryWarning("Low sigma");
250+
photometryWarning("Low sigma (< 0.01). '--ignoreLowSigma' to silence.");
251251
warnedOnce = true;
252252
}
253253
}

base9/Utility.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ namespace base
204204
std::ifstream parsFile;
205205
parsFile.open(filename);
206206

207+
if (!rData)
208+
{
209+
cerr << "***Error: Result file " << settings.files.phot << " was not found.***" << endl;
210+
cerr << "(Exiting...)" << endl;
211+
exit (1);
212+
}
213+
207214
bool hasY, hasCarbonicity;
208215

209216
getline(parsFile, line); // Parse header

sampleMass/sampleMass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void Application::run()
323323
if (!rData)
324324
{
325325
cerr << "***Error: Photometry file " << settings.files.phot << " was not found.***" << endl;
326-
cerr << ".at(Exiting...)" << endl;
326+
cerr << "(Exiting...)" << endl;
327327
exit (1);
328328
}
329329

0 commit comments

Comments
 (0)