Commit 92c23078 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Rename error_code_to_string() to strerror()

parent 621270b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,5 +56,5 @@ bool job_registration_response::store_to_buffer(std::vector<uint8_t>& buffer) {
}

std::string job_registration_response::to_string() const {
    return utils::error_code_to_string(m_error_code);
    return utils::strerror(m_error_code);
}
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ uint64_t parse_size(const std::string& str){
    return std::round(value*factor);
}

std::string error_code_to_string(int error_code) {
std::string strerror(int error_code) {

    switch(error_code) {
        case NORNS_SUCCESS:
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
namespace utils {

uint64_t parse_size(const std::string& str);
std::string error_code_to_string(int error_code);
std::string strerror(int error_code);

} // namespace utils