diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-03-06 10:47:25 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-03-06 10:50:39 +0100 |
commit | 7949c140b10184f82247ea10fbbb344ecd097924 (patch) | |
tree | d77906b13ac518cf8f9921dc26d002e0ca2c3646 /nix/libstore/optimise-store.cc | |
parent | 5ad13e6cdf77311b3c1ea93d45378f7e92081145 (diff) | |
download | guix-7949c140b10184f82247ea10fbbb344ecd097924.tar.gz guix-7949c140b10184f82247ea10fbbb344ecd097924.zip |
ui: 'load*' no longer fails on Guile 2.2.3 upon EACCES or similar.
Previously, if ~/.cache was not write-accessible, 'guix' would exit with
code 1 without printing any message. That was because the 'make-stack'
call would fail since the exception (a 'system-error) came from
'compile-file', which was called at a point where TAG wasn't installed
yet. Secondly, to mimick auto-compilation behavior, we just swallow
'system-error raised by 'compile-file'.
Reported by Clément Lassieur.
* guix/ui.scm (load*): Move 'compile-file' call in the dynamic extent of
TAG. Catch 'system-error around it and ignore it.
Diffstat (limited to 'nix/libstore/optimise-store.cc')
0 files changed, 0 insertions, 0 deletions