-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #634 from bugsnag/bundler-friendly-errors
Workaround Bundler's friendly errors swallowing error reports
- Loading branch information
Showing
14 changed files
with
109 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/custom_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
class CustomError < RuntimeError | ||
end | ||
|
||
raise CustomError.new "Oh no" | ||
raise CustomError.new "Oh no" |
10 changes: 10 additions & 0 deletions
10
features/fixtures/plain/app/unhandled/exit_after_exception.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
|
||
begin | ||
raise 'oh no' | ||
rescue | ||
exit | ||
end |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/interrupt.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
Process.kill("INT", Process.pid) | ||
Process.kill("INT", Process.pid) |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/load_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
require 'abc/def/ghi' | ||
require 'abc/def/ghi' |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/local_jump_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
def call_block | ||
yield 50 | ||
end | ||
|
||
call_block | ||
call_block |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/name_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
foo | ||
foo |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/no_method_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
Kernel.foo | ||
Kernel.foo |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/runtime_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
fail | ||
fail |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/syntax_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
require './unhandled/bad_syntax.rb' | ||
require './unhandled/bad_syntax.rb' |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/system_call_error.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
File.open("abc/def/ghi") | ||
File.open("abc/def/ghi") |
6 changes: 3 additions & 3 deletions
6
features/fixtures/plain/app/unhandled/system_exit.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require './app' | ||
#!/usr/bin/env ruby | ||
require_relative '../app' | ||
|
||
configure_basics | ||
add_at_exit | ||
|
||
exit | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters