rhino_project_core 0.21.0.beta.46 → 0.21.0.beta.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/rhino/error_handling.rb +7 -5
- data/lib/rhino/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06a96de885bbf31a18ef367c6139c3cb78a25f37102a6d980b65fd170c9bc8a2
|
4
|
+
data.tar.gz: ec3d9a80aba2a6fdc53692299640d07968c1d157b3ad4b15ea54ccab00431032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63b1fa716e6bf30d664d18376b73885cdaf1505752f7b9cc68854a2d1e4a08b997b1e3c5e3b2684aac108c957e566a8e82e70be46dbf2e49c6219023044785c5
|
7
|
+
data.tar.gz: 9bdbb9d79a108d6920a2c3e5a0ac53fedb11bb7d006b910ca4a26893d6d7cdc713ec2d26f55c5e3c6410d4a07f00c7264b1923aa7f757ab3d653c62b994133eb
|
@@ -23,14 +23,16 @@ module Rhino
|
|
23
23
|
|
24
24
|
rescue_from ActiveRecord::RecordNotFound, with: :not_found
|
25
25
|
|
26
|
-
def handle_uncaught_error(
|
26
|
+
def handle_uncaught_error(e)
|
27
|
+
raise e if Rails.env.test?
|
28
|
+
|
27
29
|
# Send to rollbar if available
|
28
|
-
Rollbar.error(
|
30
|
+
Rollbar.error(e) if defined? Rollbar
|
29
31
|
|
30
|
-
logger.error
|
32
|
+
logger.error "There was an exception - #{e.class}(#{e.message})"
|
33
|
+
logger.error e.backtrace.join("\n")
|
31
34
|
|
32
|
-
render json: { errors: ['Internal server error.'] },
|
33
|
-
status: :internal_server_error
|
35
|
+
render json: { errors: ['Internal server error.'] }, status: :internal_server_error
|
34
36
|
end
|
35
37
|
|
36
38
|
def not_found
|
data/lib/rhino/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhino_project_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.0.beta.
|
4
|
+
version: 0.21.0.beta.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Rosevear
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|