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

kernel: fix SaveWorkspace to return false in case of an error, and true only if successful #2674

Merged
merged 1 commit into from
Aug 1, 2018

Conversation

fingolfin
Copy link
Member

If we fail to open the output file (e.g. because the target location does not
exist or is not writeable for some other reason), then return false instead of
true.

Also, terminate all error messages with a new line.

Fixes #2673

If we fail to open the output file (e.g. because the target location does not
exist or is not writeable for some other reason), then return false instead of
true.

Also, terminate all error messages with a new line.

Fixes gap-system#2673
@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Aug 1, 2018
@fingolfin fingolfin requested a review from ssiccha August 1, 2018 11:21
@codecov
Copy link

codecov bot commented Aug 1, 2018

Codecov Report

Merging #2674 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #2674      +/-   ##
==========================================
- Coverage   75.41%   75.41%   -0.01%     
==========================================
  Files         478      478              
  Lines      241578   241580       +2     
==========================================
  Hits       182192   182192              
- Misses      59386    59388       +2
Impacted Files Coverage Δ
src/saveload.c 68.27% <66.66%> (+0.98%) ⬆️
src/iostream.c 62.35% <0%> (-1.15%) ⬇️
hpcgap/lib/hpc/stdtasks.g 63.93% <0%> (-0.52%) ⬇️

@fingolfin fingolfin merged commit 64f4323 into gap-system:master Aug 1, 2018
@fingolfin fingolfin deleted the mh/fix-SaveWorkspace branch August 1, 2018 21:35
@fingolfin fingolfin changed the title kernel: improve error handling in SaveWorkspace kernel: fix SaveWorkspace to return false in case of an error, and true only if successful Sep 23, 2018
@fingolfin fingolfin added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Issues describing general bugs, and PRs fixing them release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants