google-cloud-error_reporting 0.33.1 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00e616bbedd0b5633bb815bdb64a845b0ca09975806296410b42a05c1de1450b
4
- data.tar.gz: 2aec3a02f2d7741d616301d36ca00ab18ee293cfb4990fb8dd365273f256a62c
3
+ metadata.gz: 06cc4f589b045bf49e940246a4d9022ce46e6857ca7050bf9ecccad67dbd7276
4
+ data.tar.gz: d9f9c1b3f77c8da711785c74ea798296fd1d0053a5f69e8cc9ad3556307759c4
5
5
  SHA512:
6
- metadata.gz: c9cc3001e2b2e8cb6158a11bf968fcf865f0987722c64ca20f01ec61d0d9f6508613c592915bd50d4546d67f10dfd933b18519075dd49276b669c60ab709d0cb
7
- data.tar.gz: b5858f28f2d1ccdd2e92bba504e387e38f8967c846f23ad895fc9d83519fb7ec0401c1d59a7f3fd3f917f87f7a24d1a0543f19a2c3b872d24cd7bf9b63a7631d
6
+ metadata.gz: 0d94375c43c44fdadc9a82496d10626cf04a1211779656bdcb1abf0a43972e04f6b08b7b6cb7e92648afeb8a871b7988206a6e83893dacd6ac13699c2d7552e1
7
+ data.tar.gz: ee0647df1afd3714ddffec4c0e043dac4afe000637697e18bf2572580fab43b29c099596270837185a96c0e021ad1d862d17862227c3a779f2d86735eeda57e3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.34.0 / 2019-11-11
4
+
5
+ #### Features
6
+
7
+ * Prefix error message with the error name instead of the first line of the backtrace
8
+
3
9
  ### 0.33.1 / 2019-11-06
4
10
 
5
11
  #### Bug Fixes
@@ -213,14 +213,12 @@ module Google
213
213
  # from the given exception.
214
214
  def self.from_exception exception
215
215
  backtrace = exception.backtrace
216
- message = "#{exception.message} (#{exception.class})"
216
+ message = "#{exception.class}: #{exception.message}"
217
217
 
218
218
  if !backtrace.nil? && !backtrace.empty?
219
- error_location = backtrace.first
219
+ message = "#{message}\n\t" + backtrace.join("\n\t")
220
220
 
221
- message = "#{error_location}: #{message}\n\t" +
222
- backtrace.drop(1).join("\n\t")
223
- file_path, line_number, function_name = error_location.split ":"
221
+ file_path, line_number, function_name = backtrace.first.split ":"
224
222
  function_name = function_name.to_s[/`(.*)'/, 1]
225
223
  end
226
224
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ErrorReporting
19
- VERSION = "0.33.1".freeze
19
+ VERSION = "0.34.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.1
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core