Actions
Feature #20244
closedShow the conflicting another chdir block
Status:
Closed
Assignee:
-
Target version:
-
Description
Dir.chdir
is warning when in another chdir
block.
$ ruby -e 'Dir.chdir {' -e 'Dir.chdir("/")' -e '}'
-e:2: warning: conflicting chdir during another chdir block
If two chdir
s are far apart, it can be difficult to find conflicting blocks.
To help the debugging, I propose to improve the warning message to show the conflicting block.
$ ./ruby -e 'Dir.chdir {' -e 'Dir.chdir("/")' -e '}'
-e:2: warning: conflicting chdir during another chdir block
-e:1: warning: here
Actions
Like1
Like0