mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-09 16:32:39 +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(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
'No data provided for path "%s".',
|
'No data provided for path "%s".',
|
||||||
$this->getDescription()));
|
$this->getPath()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->data;
|
return $this->data;
|
||||||
|
@ -55,7 +55,7 @@ final class ArcanistWorkingCopyPath
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
'No mode provided for path "%s".',
|
'No mode provided for path "%s".',
|
||||||
$this->getDescription()));
|
$this->getPath()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->mode;
|
return $this->mode;
|
||||||
|
|
Loading…
Reference in a new issue