An error object isn't enumerable, and the error needs to be sent from the worker to the client that created the job. That architecture is implemented using redis, passing JSON messages.