Skip to content

Commit

Permalink
Issue2517 spawn error message (#2518)
Browse files Browse the repository at this point in the history
* Improved error message for #2517

* Recreated Windows binaries

* Recreated Windows binaries

* Recreated binary on Windows
  • Loading branch information
mwetter authored May 28, 2021
1 parent 58a02ee commit d061a3c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,15 @@ void getVariables(FMUBuilding* bui, const char* modelicaInstanceName, spawnReals

status = fmi2_import_get_real(bui->fmu, ptrReals->valRefs, ptrReals->n, ptrReals->valsEP);
if (status != (fmi2_status_t)fmi2OK) {
bui->SpawnFormatError("Failed to get variables for %s\n",
modelicaInstanceName);
if (bui->mode == initializationMode){
bui->SpawnFormatError(
"Failed to get parameter values for %s. This may be due to an error during the initialization or warm-up of EnergyPlus as the EnergyPlus FMU has been generated and loaded with no error.\n",
modelicaInstanceName, fmuModeToString(bui->mode));
}
else{
bui->SpawnFormatError("Failed to get variables for %s during mode = %s.\n",
modelicaInstanceName, fmuModeToString(bui->mode));
}
}
/* Set SI unit value */
for(i = 0; i < ptrReals->n; i++){
Expand Down

0 comments on commit d061a3c

Please sign in to comment.