aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-11 20:26:39 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-11 20:26:39 +0300
commit7b5f65ba64ae4df54919336f4beec19493d1b5ee (patch)
tree5a7cfe308945a642b625b61c622539745ebb9bac /lib/jobs
parent608e252bae9cf8cf763e05363bfacf5e1760134f (diff)
downloadlibquotient-7b5f65ba64ae4df54919336f4beec19493d1b5ee.tar.gz
libquotient-7b5f65ba64ae4df54919336f4beec19493d1b5ee.zip
BaseJob::StatusCode: offset first error from ErrorLevel
Q_ENUM seems to resolve int to the first enum identifier with that value so NetworkError == ErrorLevel looks confusing in logs.
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/basejob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index ecbec74a..b4c4c136 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -57,7 +57,7 @@ public:
Unprepared = 25, //< Initial job state is incomplete, hence warning level
Abandoned = 50, //< A tiny period between abandoning and object deletion
ErrorLevel = 100, //< Errors have codes starting from this
- NetworkError = 100,
+ NetworkError = 101,
Timeout,
TimeoutError = Timeout,
Unauthorised,