Skip to content

Commit 53a5a56

Browse files
SMC Driver: Verbose error handling
1 parent 7b5d7d4 commit 53a5a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Drivers/ScanLabSMC/Implementation/libmcdriver_scanlabsmc_smcjobinstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void CSMCJobInstance::drawHatchesExNonLinearPower(const LibMCDriver_ScanLabSMC_u
353353
double dSectionDelta = dCurrentSection - dLastSection;
354354

355355
if (dSectionDelta < 0.0)
356-
throw ELibMCDriver_ScanLabSMCInterfaceException(LIBMCDRIVER_SCANLABSMC_ERROR_INTERPOLATIONDATAISNOTINCREASING);
356+
throw ELibMCDriver_ScanLabSMCInterfaceException(LIBMCDRIVER_SCANLABSMC_ERROR_INTERPOLATIONDATAISNOTINCREASING, "interpolation data is not increasing: " + std::to_string (dLastSection) + " MUST be smaller than " + std::to_string (dCurrentSection));
357357

358358
auto& section = paraSections.at(nSubinterpolationIndex);
359359
section.m_dS = dSectionDelta;

0 commit comments

Comments
 (0)