diff --git a/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp b/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp index 3b0b55a860446ff410f66207934866c4c2c92330..567b8b4258898d5d5dfdb2706b97011e229f4bf5 100644 --- a/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp +++ b/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp @@ -41,6 +41,11 @@ behavior file_access_actor(stateful_actor<file_access_state>* self, int start_gr &self->state.num_gru, // Filler for num_hrus &self->state.gru_actor_stats, &self->state.err); + if (self->state.err != 0) { + aout(self) << "ERROR: File Access Actor - File_Access_init_Fortran\n"; + self->send(self->state.parent, file_access_error::unhandleable_error, self); + return {}; + } aout(self) << "Simluations Steps: " << self->state.num_steps << "\n";