Skip to content

Commit 165cc38

Browse files
bobfloatsroot
authored and
root
committed
Fix exception errors
1 parent 5404175 commit 165cc38

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/VersionControl/GitControlBundle/Validator/Constraints/GitFolderExistsValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function validate($projectEnvironment, Constraint $constraint)
4646
->addViolation();
4747
}
4848
} catch (SshLoginException $sshLoginException) {
49-
$this->context->buildViolation($sshLoginException->message)
49+
$this->context->buildViolation($sshLoginException->getMessage())
5050
->atPath('path')
5151
->addViolation();
5252
} catch (\Exception $e) {

src/VersionControl/GitControlBundle/Validator/Constraints/GitFolderNotExistsValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function validate($projectEnvironment, Constraint $constraint)
4747
->addViolation();
4848
}
4949
} catch (SshLoginException $sshLoginException) {
50-
$this->context->buildViolation($sshLoginException->message)
50+
$this->context->buildViolation($sshLoginException->getMessage())
5151
->atPath('path')
5252
->addViolation();
5353
} catch (Exception $ex) {

src/VersionControl/GitControlBundle/Validator/Constraints/SshDetailsValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function validate($projectEnvironment, Constraint $constraint)
5050
->addViolation();
5151
}
5252
} catch (SshLoginException $sshLoginException) {
53-
$this->context->buildViolation($sshLoginException->message)
53+
$this->context->buildViolation($sshLoginException->getMessage())
5454
->atPath('title')
5555
->addViolation();
5656
} catch (\Exception $ex) {

0 commit comments

Comments
 (0)