[C] Changed errors descriptions

This commit is contained in:
seleznevae
2020-02-23 11:54:59 +03:00
parent d91c7ce9d1
commit cd11dfd7de
7 changed files with 47 additions and 35 deletions

View File

@@ -1022,18 +1022,18 @@ const char *ft_strerror(int error_code)
{
switch (error_code) {
case FT_MEMORY_ERROR:
return "Libfort error (out of memory)";
return "Out of memory";
case FT_GEN_ERROR:
return "Libfort error (general error)";
return "General error";
case FT_EINVAL:
return "Libfort error (invalid argument)";
return "Invalid argument";
case FT_INTERN_ERROR:
return "Libfort error (internal logic error)";
return "Internal libfort error";
default:
if (error_code < 0)
return "Libfort unknown error";
return "Unknown error code";
else
return "Libfort success";
return "Success";
}
}