From 0b31b494fd157296e5b59bd1fb20c9e627fec3c3 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 11 Mar 2011 18:49:08 +0000 Subject: david - woops, my exceptions not being consistant caused problems in fishtrax... --- php/phpgats.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'php/phpgats.php') diff --git a/php/phpgats.php b/php/phpgats.php index 506a141..10008aa 100644 --- a/php/phpgats.php +++ b/php/phpgats.php @@ -518,8 +518,7 @@ function phpgats_parseGats( $str_data ) $size = $size["size"]; if( $data_size < $size ) { - throw new Exception( "invalid size (needed: " . $size . - ", was: " . $data_size . ")\n" ); + throw new Exception( "Not enough data" ); return false; } $offset+=5; -- cgit v1.2.3