Skip to content

Commit 516e0a2

Browse files
authored
Merge pull request DOCGroup#183 from DOCGroup/workers-invalid-directory
Fixed directory issue with -workers
2 parents b93c335 + b8d8817 commit 516e0a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/WorkspaceCreator.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,8 @@ sub generate_project_files_fork {
18021802
}
18031803

18041804
$self->{'cacheok'} = $cacheok;
1805-
if ($self->cd($dir)) {
1805+
my $full = $self->path_is_relative($dir) ? "$cwd/$dir" : $dir;
1806+
if ($self->cd($full)) {
18061807
if ($self->{'cacheok'} && defined $allprojects{$prkey}) {
18071808

18081809
$files_written = $allprojects{$prkey};
@@ -1840,8 +1841,7 @@ sub generate_project_files_fork {
18401841
## Unable to change to the directory.
18411842
## We don't restore the state before we leave,
18421843
## but that's ok since we will be exiting soon.
1843-
return 0, $creator, $msg;
1844-
1844+
return 0, $creator, "Unable to change directory to $full";
18451845
}
18461846

18471847
## Return things to the way they were

0 commit comments

Comments
 (0)