puma-status 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/core.rb +1 -1
- data/lib/puma-status.rb +14 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ca14da024cebc278c903552c9bfe21afccfabec8baea2972ac4b3e7b241ab1
|
4
|
+
data.tar.gz: f738a71b63d55124ee43e921f69f9d81295360c9d43925716ed0bb3716751907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b96bb8f8ebd7776dd6a3b023c533e53638bf63da61efe5e5c9abb9111ff0ad05aa615584ffa3a804e00ddc1d7cc8cabbec46be677044139e97b722a60eb7f62
|
7
|
+
data.tar.gz: e136edb4aed4f52dc06ecda5e48b43b4c92e13b79619277c0d63cc4ac960009855ec4a8d475fe8c23721e0164799b6692f4863b506ac2eb7cf5039551d723af6
|
data/lib/core.rb
CHANGED
data/lib/puma-status.rb
CHANGED
@@ -17,11 +17,21 @@ def run
|
|
17
17
|
begin
|
18
18
|
debug "State file: #{state_file_path}"
|
19
19
|
format_stats(get_stats(state_file_path))
|
20
|
-
rescue Errno::ENOENT
|
21
|
-
|
20
|
+
rescue Errno::ENOENT => e
|
21
|
+
if e.message =~ /#{state_file_path}/
|
22
|
+
errors << "#{warn(state_file_path)} doesn't exists"
|
23
|
+
elsif e.message =~ /connect\(2\) for [^\/]/
|
24
|
+
errors << "#{warn("Relative Unix socket")}: the Unix socket of the control app has a relative path. Please, ensure you are running from the same folder has puma."
|
25
|
+
else
|
26
|
+
errors << "#{error(state_file_path)} an unhandled error occured: #{e.inspect}"
|
27
|
+
end
|
22
28
|
nil
|
23
|
-
rescue Errno::EISDIR
|
24
|
-
|
29
|
+
rescue Errno::EISDIR => e
|
30
|
+
if e.message =~ /#{state_file_path}/
|
31
|
+
errors << "#{warn(state_file_path)} isn't a state file"
|
32
|
+
else
|
33
|
+
errors << "#{error(state_file_path)} an unhandled error occured: #{e.inspect}"
|
34
|
+
end
|
25
35
|
nil
|
26
36
|
rescue => e
|
27
37
|
errors << "#{error(state_file_path)} an unhandled error occured: #{e.inspect}"
|