Commit 8ee4435c authored by Jason Rhinelander's avatar Jason Rhinelander

Fixed exception error message

parent 884d0bdf
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
static void applyGlue(std::shared_ptr<eris::Simulation> sim, eris::SharedMember<Member> shmem, const py::object &member); static void applyGlue(std::shared_ptr<eris::Simulation> sim, eris::SharedMember<Member> shmem, const py::object &member);
protected: protected:
virtual void added() override { virtual void added() override {
if (not parent_->hasSimulation()) throw std::logic_error("pyeris InterBegin wrapper added before parent"); if (not parent_->hasSimulation()) throw std::logic_error("pyeris OptimizerGlue wrapper added before parent");
dependsOn(parent_); dependsOn(parent_);
} }
/// Returns the parent (i.e. the member we are glue for), cast to a py::object /// Returns the parent (i.e. the member we are glue for), cast to a py::object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment