X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fharbl.git;a=blobdiff_plain;f=harbl-cli%2Fsrc%2FExitCodes.hs;h=8459df7fd0eae70226b340c63df76cc70aca9b5f;hp=472ea152d4a2293969322c85ca827026d2b944b6;hb=d124148390284252851e2973e60d1fe85380330d;hpb=5c8702f0be60474482c587ba353e01ddf24f79cc diff --git a/harbl-cli/src/ExitCodes.hs b/harbl-cli/src/ExitCodes.hs index 472ea15..8459df7 100644 --- a/harbl-cli/src/ExitCodes.hs +++ b/harbl-cli/src/ExitCodes.hs @@ -2,31 +2,38 @@ -- ExitSuccess). -- module ExitCodes ( + exit_host_blacklisted, exit_no_hosts, exit_no_lists, exit_unparseable_host, exit_unparseable_list ) where +-- | The most common error: some host exceeded the blacklist +-- threshold. +exit_host_blacklisted :: Int +exit_host_blacklisted = 1 + + -- | No hosts were given on the command-line or in a config file. -- exit_no_hosts :: Int -exit_no_hosts = 1 +exit_no_hosts = 2 -- | No lists were given on the command-line or in a config file. -- exit_no_lists :: Int -exit_no_lists = 2 +exit_no_lists = 3 -- | The user gave us an RBL we couldn't parse. -- exit_unparseable_list :: Int -exit_unparseable_list = 3 +exit_unparseable_list = 4 -- | The user gave us a host we couldn't parse. -- exit_unparseable_host :: Int -exit_unparseable_host = 4 +exit_unparseable_host = 5