Skip to content

Docker build fails on handleError #33

@JosefSommerauer

Description

@JosefSommerauer

docker build -t example-crud --no-cache .
fails with following error message:

In file included from /service/src/ErrorHandler.cpp:2:
/service/src/ErrorHandler.hpp:22:3: error: 'std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> ErrorHandler::handleError(const Status&, const oatpp::String&, const oatpp::web::server::handler::ErrorHandler::Headers&)' marked 'override', but does not override
   22 |   handleError(const Status& status, const oatpp::String& message, const Headers& headers) override;
      |   ^~~~~~~~~~~
make[2]: *** [CMakeFiles/crud-lib.dir/build.make:90: CMakeFiles/crud-lib.dir/src/ErrorHandler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/crud-lib.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions