1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 14:22:40 +01:00

Fix calls to non-existing getDescription() in ArcanistWorkingCopyPath

Summary: `ArcanistWorkingCopyPath::getDescription()` is undefined. Given its use in the exception message, the path is supposed to be used, so call `ArcanistWorkingCopyPath::getPath()` instead.

Test Plan: Carefully read the code and check for existing methods in the class.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25657
This commit is contained in:
Andre Klapper 2024-05-17 11:47:38 +02:00
parent 5477568274
commit 3cb117684f

View file

@ -30,7 +30,7 @@ final class ArcanistWorkingCopyPath
throw new Exception(
pht(
'No data provided for path "%s".',
$this->getDescription()));
$this->getPath()));
}
return $this->data;
@ -55,7 +55,7 @@ final class ArcanistWorkingCopyPath
throw new Exception(
pht(
'No mode provided for path "%s".',
$this->getDescription()));
$this->getPath()));
}
return $this->mode;