Skip to content

Commit

Permalink
Fix detecting errors returned from WWO.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 11, 2014
1 parent b07673f commit 69f3399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Service_Weather/lib/Horde/Service/Weather/Wwo.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ protected function _searchLocations($location)

protected function _parseSearchLocations($response)
{
if (!empty($response->error)) {
throw new Horde_Service_Weather_Exception($response->error->msg);
if (!empty($response->results->error)) {
throw new Horde_Service_Weather_Exception($response->results->error->message);
}

// Wwo's location search is pretty useless. It *always* returns multiple
Expand Down

0 comments on commit 69f3399

Please sign in to comment.