As mentioned in the presentation library can have configurable error reporting (return codes via std::expected or exceptions). For demonstration purposes it was implemented in the make_environment function in the corresponding header file.
It is required to use similar approach in other library components.