From d4d6614e57d12460b97ce400ae3f730b174f0553 Mon Sep 17 00:00:00 2001 From: Jason Priem Date: Tue, 16 Oct 2012 05:28:57 -0300 Subject: [PATCH] fix wrong var name in error handling code thanks phillip for spotting this one! --- Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser.php b/Parser.php index 583c21f..f14eebf 100644 --- a/Parser.php +++ b/Parser.php @@ -147,7 +147,7 @@ private function parse() // get the last name $this->last = $this->name->chopWithRegex($lastRegex, 0); if (!$this->last){ - throw new Exception("Couldn't find a last name in '{$this->nameStr->getStr()}'."); + throw new Exception("Couldn't find a last name in '{$this->name->getStr()}'."); } // get the first initial, if there is one @@ -156,7 +156,7 @@ private function parse() // get the first name $this->first = $this->name->chopWithRegex($firstRegex, 0); if (!$this->first){ - throw new Exception("Couldn't find a first name in '{$this->nameStr->getStr()}'"); + throw new Exception("Couldn't find a first name in '{$this->name->getStr()}'"); } // if anything's left, that's the middle name