Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses Display in TieredStorageFile::new_readonly() panic message #34148

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

brooksprumo
Copy link
Contributor

Problem

The panic message is user facing, and Display should be used instead of Debug when possible. This is not the case in TieredStorageFile::new_readonly().

Summary of Changes

Use Display instead of Debug

@brooksprumo brooksprumo self-assigned this Nov 17, 2023
@brooksprumo brooksprumo changed the title Uses Display for path and error in TieredStorageFile::new_readonly() panic Uses Display in TieredStorageFile::new_readonly() panic message Nov 17, 2023
@brooksprumo brooksprumo marked this pull request as ready for review November 17, 2023 19:03
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Merging #34148 (58497ac) into master (4cbd57e) will increase coverage by 0.0%.
Report is 12 commits behind head on master.
The diff coverage is 100.0%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34148   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         818      818           
  Lines      219945   219945           
=======================================
+ Hits       180199   180202    +3     
+ Misses      39746    39743    -3     

Copy link
Contributor

@yhchiang-sol yhchiang-sol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the code better!

@brooksprumo brooksprumo merged commit 8c8cd66 into solana-labs:master Nov 17, 2023
17 checks passed
@brooksprumo brooksprumo deleted the ts/tsf/new branch November 17, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants