The ReportErrors subroutine examines the err object (the Visual Basic error object) and calls the End method of the Response object if the number property of err is not 0, which means an error has occurred. The End method causes the Web server to stop processing the script and return the current result. ReportErrors also handles errors from the ActiveConnection property of the Command object. When errors occur, ReportErrors calls the writeError subroutine. Writing a JavaScript Error Message contains the code for the error message.