Title: Errors are added as HTML comments
Last modified: August 21, 2016

---

# Errors are added as HTML comments

 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/errors-are-added-as-html-comments/)
 * If for some reason your widget is not being displayed, view source on the page
   and search for ‘AWESOME WEATHER ERROR:’. This will give you some information 
   about what happened.
 * [http://wordpress.org/extend/plugins/awesome-weather/](http://wordpress.org/extend/plugins/awesome-weather/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [rssantan](https://wordpress.org/support/users/rssantan/)
 * (@rssantan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-are-added-as-html-comments/#post-3650062)
 * hello, my name is Ricardo, mail: [comercial@needsolution.com.br](https://wordpress.org/support/topic/errors-are-added-as-html-comments/comercial@needsolution.com.br?output_format=md)
 * please, help me, I’m from Brazil, how to translate your plugin to portuguese ?
 *  [lwoods](https://wordpress.org/support/users/lwoods/)
 * (@lwoods)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/errors-are-added-as-html-comments/#post-3650070)
 * To: Hal Gatewood
 * Re: Error
 * In the event of receiving an error from the Weather source, instead of just clearing
   your display I would like to see you seriously consider preserving the previous
   display and adding something like “DELAYED” in the display. Just clearing the
   display is VERY confusing to users—and to developers as well!
 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/errors-are-added-as-html-comments/#post-3650071)
 * There has also been a filter available to hook into and display whatever you 
   want when there is an error:
 *     ```
       function hg_awesome_weather_error( ) {
           return "Weather Data Coming Soon";
       }
       add_filter( 'awesome_weather_error', 'hg_awesome_weather_error' );
       ```
   
 * I think hiding the widget on error is probably the most user friendly solution
   unless you are a weather website, in which case I would advise you to use a different
   more robust weather widget. The weather widget is probably not the focus of the
   page and if it happens to not show one time, most users will probably not notice.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Errors are added as HTML comments’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/awesome-weather_ad7c7d.svg)
 * [Awesome Weather Widget](https://wordpress.org/plugins/awesome-weather/)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-weather/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/errors-are-added-as-html-comments/#post-3650071)
 * Status: not a support question