It may be better to alert() instead of throwing, as the end user won't see the exception.
Also, the error message is ambiguous, `Marketplace search request failed`.