Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaulis committed Aug 17, 2015
1 parent cab543d commit 779ecea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function create($data)
$entity = $this->getHydrator()->hydrate($data, $entity);
return $entity;
}
throw new DomainException($result->message, $this->getLastResponseHttpCode());
throw new DomainException($result && is_object($result) ? $result->message : "Couldn't create the resource.", $this->getLastResponseHttpCode());

}

Expand Down

0 comments on commit 779ecea

Please sign in to comment.