SolidWallOfCode commented on code in PR #9878:
URL: https://github.com/apache/trafficserver/pull/9878#discussion_r1265688598


##########
include/tscpp/util/ts_errata.h:
##########
@@ -40,5 +40,16 @@ static constexpr std::array<swoc::TextView, 9> 
Severity_Names{
   {"Diag", "Debug", "Status", "Note", "Warn", "Error", "Fatal", "Alert", 
"Emergency"}
 };
 
+inline std::error_code
+ec_for()
+{
+  return {errno, std::system_category()};
+}
+inline std::error_code
+ec_for(int err)
+{
+  return {err, std::system_category()};
+}
+

Review Comment:
   Changed to `make_errno_code`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to