diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-29 18:50:04 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-29 18:50:04 +0300 |
commit | b08db17162fddda97e6ee1ac625eae1430d22b64 (patch) | |
tree | 2c332f2db57a15c72f58704b9175cfece0ae9698 /src/error.c | |
parent | ea25abb295d9b4fbaf0ac23af8ffe71247970f1b (diff) | |
download | magi-b08db17162fddda97e6ee1ac625eae1430d22b64.tar magi-b08db17162fddda97e6ee1ac625eae1430d22b64.tar.xz magi-b08db17162fddda97e6ee1ac625eae1430d22b64.zip |
[magi] Almost done!
Diffstat (limited to 'src/error.c')
-rw-r--r-- | src/error.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/error.c b/src/error.c index 48c3c36..efe6dbf 100644 --- a/src/error.c +++ b/src/error.c @@ -3,16 +3,17 @@ const char * magi_error_message(enum magi_error error) { - static const char * const messages[] = { + const char * const messages[] = { 0, /* magi_error_none */ "No boundary for multipart.", /* magi_error_nobound */ - "Content-type is unknown.", /* magi_error_unknown */ - "Content-type is not given.", /* magi_error_notype */ + "Content-Type is unknown.", /* magi_error_unknown */ + "Content-Type is not given.", /* magi_error_notype */ "Mismatch of content length.", /* magi_error_length */ "Cannot allocate memory.", /* magi_error_memory */ "Cannot read cookies.", /* magi_error_cookies */ "Cannot decode URL.", /* magi_error_urlenc */ - "Cannot read multipart body." /* magi_error_multipart */ + "Cannot read multipart body.", /* magi_error_multipart */ + "Part of request was too big." /* magi_error_limit */ }; return messages[error]; } |