We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940c6ac commit 18dd153Copy full SHA for 18dd153
lib/solid_queue/processes/process_exit_error.rb
@@ -4,10 +4,13 @@ module SolidQueue
4
module Processes
5
class ProcessExitError < RuntimeError
6
def initialize(status)
7
- message = case
8
- when status.exitstatus.present? then "Process pid=#{status.pid} exited with status #{status. exitstatus}"
9
- when status.signaled? then "Process pid=#{status.pid} received unhandled signal #{status. termsig}"
10
- else "Process pid=#{status.pid} exited unexpectedly"
+ message = "Process pid=#{status.pid} exited unexpectedly."
+ if status.exitstatus.present?
+ message += " Exited with status #{status.exitstatus}."
+ end
11
+
12
+ if status.signaled?
13
+ message += " Received unhandled signal #{status.termsig}."
14
end
15
16
super(message)
0 commit comments