• Hi,

    What would be the best way to test if a search through the php function AmazonAutoLinks returns an error? (for example, no products found?)

    Example: following might return “Amazon Auto Links: PAAPIError: NoResults: No results found for your request.” I would like to customize the error message.

    <?php AmazonAutoLinks( array( ‘search’ => ‘xxxxxxx’ ) ); ?>

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    At the moment, there is no way to customize error messages. Sorry. They need to be untouched for when users report problems so that the developer can know what kind of problem they are. If the error message is modified, the developer has too little clue what’s going on.

    Maybe you can explain why you need this in more detail so that we can find another approach.

    Thank you.

    Plugin Author miunosoft

    (@miunosoft)

    The development version v4.1.0b comes with a new unit option named Show Errors under the Common Advanced section. This lets you hide errors.

    Let me know if this solves your issue.

    Thread Starter symergo

    (@symergo)

    Hi Miunosoft,
    That indeed helps a lot!
    My main concern was the cryptic error messages that I would like to replace with a more general message.
    Hiding the error entirely definitively helps as well.
    Thanks.

    fyi: Amazon . nl is live as well now, you might want to add it.

    Plugin Author miunosoft

    (@miunosoft)

    Glad it helped!

    Thanks for the heads up about the .nl locale.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing error message – checking if API answer is empty’ is closed to new replies.