soar_sc_views 0.1.0 → 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/.gitignore +1 -0
- data/lib/soar_sc_views/default.rb +7 -2
- data/lib/soar_sc_views/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fc32036e06227312c80b2b476c99967b899957e
|
4
|
+
data.tar.gz: d78da4c1d0049d118173e13e1166c8a9930866fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed77e807eb1f40aea8f988bdb38597b35a421fbee288071689a0d459921d15e98b8775b7ce6c90365f08bb3d72f079a441eb75b380850b21d24192ad9f66d514
|
7
|
+
data.tar.gz: db3da2c55307f8934a1cd8373e4269fba0880521a67c657f7a46b42525e698d1d5759736f05cd1f53629233a3164de4477ab709a1fecd5453eae535ed879bf93
|
data/.gitignore
CHANGED
@@ -27,9 +27,14 @@ module SoarSc
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.error(ex)
|
30
|
-
|
30
|
+
if ex.is_a?(Exception)
|
31
|
+
body = "#{ex.class}: #{ex.message}"
|
32
|
+
body = body + ":\n\t" + ex.backtrace.join("\n\t") if ENV['RACK_ENV'] == 'development'
|
33
|
+
else
|
34
|
+
body = ex.to_s
|
35
|
+
end
|
31
36
|
[500, {"Content-Type" => "text/html"}, [body]]
|
32
|
-
end
|
37
|
+
end
|
33
38
|
end
|
34
39
|
end
|
35
40
|
end
|