|
From: <cw...@us...> - 2007-08-13 05:58:51
|
Revision: 498
http://rdfapi-php.svn.sourceforge.net/rdfapi-php/?rev=498&view=rev
Author: cweiske
Date: 2007-08-12 22:58:50 -0700 (Sun, 12 Aug 2007)
Log Message:
-----------
More verbose error message that helps to find the error better
Modified Paths:
--------------
trunk/rdfapi-php/api/syntax/N3Parser.php
Modified: trunk/rdfapi-php/api/syntax/N3Parser.php
===================================================================
--- trunk/rdfapi-php/api/syntax/N3Parser.php 2007-08-13 05:14:26 UTC (rev 497)
+++ trunk/rdfapi-php/api/syntax/N3Parser.php 2007-08-13 05:58:50 UTC (rev 498)
@@ -744,7 +744,11 @@
if (count($list) == 3) return array($list);
if (count($list) < 3) {
- throw new Exception('N3 statement too short.');
+ throw new Exception(
+ 'N3 statement too short,'
+ . ' only ' . count($list) . ' elements instead of 3:' . "\n"
+ . implode("\n", $list)
+ );
}
//Get all ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|