mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-26 23:40:56 +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:
parent
5477568274
commit
3cb117684f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue