1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-08-04 13:00:24 +00:00
QB64-PE/tests/compile_tests/http/no_unstable_err.bas
Matthew Kilgore 445408d95b _StatusCode() should give the correct error on invalid handle type
Passing a handle of the invalid type (Ex. TCP) to _StatusCode should
give error 52, but it gies error 9.
2022-11-20 04:38:03 -05:00

12 lines
167 B
QBasic

$Console:Only
ON ERROR GOTO errorhand
h& = _OpenClient("https://www.example.com")
Print h&
System
errorhand:
PRINT "Error:"; ERR; ", Line:"; _ERRORLINE
RESUME NEXT