summaryrefslogtreecommitdiff
path: root/COMMON_ERRORS.md
diff options
context:
space:
mode:
Diffstat (limited to 'COMMON_ERRORS.md')
-rw-r--r--COMMON_ERRORS.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/COMMON_ERRORS.md b/COMMON_ERRORS.md
index aa4b042654..70c09e3476 100644
--- a/COMMON_ERRORS.md
+++ b/COMMON_ERRORS.md
@@ -210,7 +210,7 @@ whole.
BMCWEB_ROUTE("/myendpoint/<str>",
[](Request& req, Response& res, const std::string& id){
crow::connections::systemBus->async_method_call(
- [asyncResp](const boost::system::error_code ec,
+ [asyncResp](const boost::system::error_code& ec,
const std::string& myProperty) {
if (ec)
{
@@ -242,7 +242,7 @@ An implementation of the above that handles 404 would look like:
BMCWEB_ROUTE("/myendpoint/<str>",
[](Request& req, Response& res, const std::string& id){
crow::connections::systemBus->async_method_call(
- [asyncResp](const boost::system::error_code ec,
+ [asyncResp](const boost::system::error_code& ec,
const std::string& myProperty) {
if (ec == <error code that gets returned by not found>){
messages::resourceNotFound(res);