diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-20 20:04:14 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-20 20:06:45 +0200 |
commit | 2ab1e53b4bc15af3319994fdb25bb739b4b8e6db (patch) | |
tree | 22e32f721c783f3ee934498ec95b58f5a117ac67 /src/loader/connecterror.nim | |
parent | 60dc37269cd2dc8cdf23d9f77680f6af9490032f (diff) | |
download | chawan-2ab1e53b4bc15af3319994fdb25bb739b4b8e6db.tar.gz |
loader: better error handling
we no longer crash on broken codecs. yay
Diffstat (limited to 'src/loader/connecterror.nim')
-rw-r--r-- | src/loader/connecterror.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/connecterror.nim b/src/loader/connecterror.nim index 08f7b436..c3099b0f 100644 --- a/src/loader/connecterror.nim +++ b/src/loader/connecterror.nim @@ -1,4 +1,5 @@ type ConnectErrorCode* = enum + ERROR_FAILED_TO_REDIRECT = (-17, "failed to redirect request body") ERROR_URL_NOT_IN_CACHE = (-16, "URL was not found in the cache") ERROR_FILE_NOT_IN_CACHE = (-15, "file was not found in the cache") ERROR_FAILED_TO_EXECUTE_CGI_SCRIPT = (-14, "failed to execute CGI script") |