Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Friendlier error message for mapping failures #12213

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

sakridge
Copy link
Contributor

@sakridge sakridge commented Sep 14, 2020

Problem

panic for mapping error is not very user-friendly and doesn't offer any suggestion for fixing the problem.

Summary of Changes

Print an error offering vm.max_map_count suggestion and exit.

Fixes #12186

@codecov
Copy link

codecov bot commented Sep 14, 2020

Codecov Report

Merging #12213 into master will decrease coverage by 0.0%.
The diff coverage is 40.0%.

@@            Coverage Diff            @@
##           master   #12213     +/-   ##
=========================================
- Coverage    82.1%    82.1%   -0.1%     
=========================================
  Files         338      338             
  Lines       79577    79585      +8     
=========================================
+ Hits        65352    65358      +6     
- Misses      14225    14227      +2     

@sakridge sakridge requested a review from mvines September 15, 2020 15:28
@sakridge sakridge merged commit 3d4b9bb into solana-labs:master Sep 15, 2020
@sakridge sakridge added the v1.3 label Sep 15, 2020
@sakridge sakridge deleted the mapping-errors branch September 15, 2020 22:43
mergify bot pushed a commit that referenced this pull request Sep 15, 2020
mergify bot added a commit that referenced this pull request Sep 16, 2020
(cherry picked from commit 3d4b9bb)

Co-authored-by: sakridge <sakridge@gmail.com>
@mvines
Copy link
Contributor

mvines commented Sep 16, 2020

Thanks, delayed r+!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message for mapping failures
2 participants