Skip to content

Commit

Permalink
Update builder.php
Browse files Browse the repository at this point in the history
Added error handling
  • Loading branch information
Jakiboy committed Jan 28, 2025
1 parent b7f2798 commit 6cd8a65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@

// Get response
$data = $builder->search('_KEYWORDS_'); // Normalized Array

// Handle response error
if ( $builder->hasError() ) {
echo $builder->getError(); // String
}
var_dump($data);

// Any PR is welcome!

0 comments on commit 6cd8a65

Please sign in to comment.