better_errors 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of better_errors might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/better_errors/raised_exception.rb +4 -0
- data/lib/better_errors/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02fd367f762466af8d20849212f8f765139d03d9c32df942cbe72ccfe78a5bbd
|
4
|
+
data.tar.gz: 24746f4912c8b8dc817bc5e12f7ae9237857418923c3c951abe3ab511c6474ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3986c20ba505005e72c3f4933d73a8f62b384ce15e98393fee07b1cc8cee9b574b6790f6f772d164d7e969560323b3e303f619ef9541a3b808774b162454c5e9
|
7
|
+
data.tar.gz: 3138903e38853c5a1ec862fdd1b91600906db24ae52abaac48adfa36d6272d044e8ca3a295f48617b9fb6d3298f54f20ff29dee103d1f6791d15e77b64ed86d2
|
@@ -57,6 +57,10 @@ module BetterErrors
|
|
57
57
|
|
58
58
|
def massage_syntax_error
|
59
59
|
case exception.class.to_s
|
60
|
+
when "ActionView::Template::Error"
|
61
|
+
if exception.respond_to?(:file_name) && exception.respond_to?(:line_number)
|
62
|
+
backtrace.unshift(StackFrame.new(exception.file_name, exception.line_number.to_i, "view template"))
|
63
|
+
end
|
60
64
|
when "Haml::SyntaxError", "Sprockets::Coffeelint::Error"
|
61
65
|
if /\A(.+?):(\d+)/ =~ exception.backtrace.first
|
62
66
|
backtrace.unshift(StackFrame.new($1, $2.to_i, ""))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Somerville
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
217
|
+
rubygems_version: 3.1.2
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Better error page for Rails and other Rack apps
|