In case of an exception in Tempfile.open the in_tmp_file in the current ensure block is nil, which lets to another exception when calling unlink. This shadows the original exception.
We encountered this issue in context of a Docker environment and fixed this via a monkey patch.
Are you interested in a pull request, ideally with a test case?
In case of an exception in
Tempfile.open
thein_tmp_file
in the currentensure
block isnil
, which lets to another exception when callingunlink
. This shadows the original exception.We encountered this issue in context of a Docker environment and fixed this via a monkey patch.
Are you interested in a pull request, ideally with a test case?