Trivial error reporting patch by (Glenn Maynard <g_sf at zewt dot org>)