[Pkg-owncloud-commits] [php-sabre-vobject] 06/25: Better error message on validating N, ADR
David Prévot
taffit at moszumanska.debian.org
Thu Apr 7 01:41:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 73c3d9d475bca613b744b836df97f55d42558900
Author: Evert Pot <me at evertpot.com>
Date: Thu Mar 31 21:18:55 2016 -0400
Better error message on validating N, ADR
---
CHANGELOG.md | 1 +
lib/Property/Text.php | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6d73cd8..df805d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ ChangeLog
`RECURRENCE-ID` property.
* #306: iTip REPLYs to the first instance of a recurring event was not handled
correctly.
+* Slightly better error message during validation of `N` and `ADR` properties.
4.0.3 (2016-03-12)
diff --git a/lib/Property/Text.php b/lib/Property/Text.php
index 6456296..1e34eaa 100644
--- a/lib/Property/Text.php
+++ b/lib/Property/Text.php
@@ -397,7 +397,7 @@ class Text extends Property {
if (count($parts) < $minimum) {
$warnings[] = [
'level' => 1,
- 'message' => 'This property must have at least ' . $minimum . ' components. It only has ' . count($parts),
+ 'message' => 'This ' . $this->name . 'property must have at least ' . $minimum . ' components. It only has ' . count($parts),
'node' => $this,
];
if ($options & self::REPAIR) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list