B
Bruce Thornbury
I've seen several posts about this but haven't seen an answer:
I'm capturing errors using ON ERROR RESUME NEXT. VBScript's default error
object works fine but lacks the file, line, and code that the
Server.GetLastError function gives you. Unfortunately, I can't get the
Server.GetLastError to work properly.
Simplistic code:
if err.number <> 0 then
Response.Write err.number & " - " & err.description & "<br>"
end if
this works fine. If I use:
dim oAspErr
if err.number <> 0 then
set oAspErr = Server.GetLastError
Response.Write "Description: " & oAspErr.Description
end if
the only output I get is the word "Description:". Can someone shed some
light for me? Thanks.
Bruce
I'm capturing errors using ON ERROR RESUME NEXT. VBScript's default error
object works fine but lacks the file, line, and code that the
Server.GetLastError function gives you. Unfortunately, I can't get the
Server.GetLastError to work properly.
Simplistic code:
if err.number <> 0 then
Response.Write err.number & " - " & err.description & "<br>"
end if
this works fine. If I use:
dim oAspErr
if err.number <> 0 then
set oAspErr = Server.GetLastError
Response.Write "Description: " & oAspErr.Description
end if
the only output I get is the word "Description:". Can someone shed some
light for me? Thanks.
Bruce