Changes as advised by Rombert

Removed the debugging code and comment from bug_update.php
Modified the error message to be clearer/more detailed.