coaster 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coaster/core_ext/standard_error.rb +1 -1
- data/lib/coaster/version.rb +1 -1
- data/test/test_standard_error.rb +1 -1
- 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: '095940670cdfde3eac7e9c3ab8818386b9070cf4d19ac405e144296e2bdb2c25'
|
4
|
+
data.tar.gz: 468278966fcdad4349921586d9520a2dd0b84188f52f5f089678f09b88ea7ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a332cd5b18dd1963a010293352c80939d99c968f4c83d52f02aebf0d50d444eb2ed82ed0590afded4eed2712b58eb550b7ca1f1f90389d42011b920435a7929
|
7
|
+
data.tar.gz: 4fe3cddcca27bc17f0c189e9eb829b68f52f07b9a4b4c6c2a9dcbbaca883c2d2cb4e89f134c159fc0a94888049ac990dbb6c26d7811681f32d995a4e8dcbc22d
|
@@ -133,7 +133,7 @@ class StandardError
|
|
133
133
|
# user friendly message, for overid
|
134
134
|
def user_message
|
135
135
|
return description if description.present?
|
136
|
-
return _translate
|
136
|
+
return _translate if tkey.present? || dev_message.present?
|
137
137
|
"#{_translate} (#{to_origin_s})"
|
138
138
|
end
|
139
139
|
|
data/lib/coaster/version.rb
CHANGED
data/test/test_standard_error.rb
CHANGED
@@ -97,7 +97,7 @@ module Coaster
|
|
97
97
|
assert_nil e.description
|
98
98
|
assert_nil e.desc
|
99
99
|
assert_equal 'Test sample error', e._translate
|
100
|
-
assert_equal 'Test sample error
|
100
|
+
assert_equal 'Test sample error', e.user_message
|
101
101
|
assert_equal 'Test this title', e.title
|
102
102
|
e = SampleError.new(m: 'developer message', desc: 'user message')
|
103
103
|
assert_equal "user message (developer message)", e.to_s
|