Commit 7ad30c1c authored by Dominik Charousset's avatar Dominik Charousset

Add new error code: sec::connection_closed

parent 73110541
...@@ -5,6 +5,10 @@ is based on [Keep a Changelog](https://keepachangelog.com). ...@@ -5,6 +5,10 @@ is based on [Keep a Changelog](https://keepachangelog.com).
## [Unreleased] ## [Unreleased]
### Added
- The enum `caf::sec` received an additional error code: `connection_closed`.
### Changed ### Changed
- When using `CAF_MAIN`, CAF now looks for the correct default config file name, - When using `CAF_MAIN`, CAF now looks for the correct default config file name,
......
...@@ -160,6 +160,8 @@ enum class sec : uint8_t { ...@@ -160,6 +160,8 @@ enum class sec : uint8_t {
load_callback_failed = 60, load_callback_failed = 60,
/// Converting between two types failed. /// Converting between two types failed.
conversion_failed, conversion_failed,
/// A network connection was closed by the remote side.
connection_closed,
}; };
/// @relates sec /// @relates sec
......
...@@ -139,6 +139,8 @@ std::string to_string(sec x) { ...@@ -139,6 +139,8 @@ std::string to_string(sec x) {
return "load_callback_failed"; return "load_callback_failed";
case sec::conversion_failed: case sec::conversion_failed:
return "conversion_failed"; return "conversion_failed";
case sec::connection_closed:
return "connection_closed";
}; };
} }
......
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