Skip to content

Commit

Permalink
Include error details on framework error
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 10, 2023
1 parent 7005ec9 commit 1f64c29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion buildpacks/ruby/src/user_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ pub(crate) fn on_error(err: libcnb::Error<RubyBuildpackError>) {
let log = BuildLog::new(std::io::stdout()).without_buildpack_name();
match cause(err) {
Cause::OurError(error) => log_our_error(log, error),
Cause::FrameworkError(_error) => log.announce().error(&formatdoc! {"
Cause::FrameworkError(error) =>
log
.section(DEBUG_INFO)
.step(&error.to_string())
.announce()
.error(&formatdoc! {"
Error: heroku/buildpack-ruby internal buildpack error
The framework used by this buildpack encountered an unexpected error.
Expand Down

0 comments on commit 1f64c29

Please sign in to comment.