]> gitweb.factorcode.org Git - factor.git/commit
windows.errors: make check-invalid-handle throw windows-error instances
authorAlexander Iljin <ajsoft@yandex.ru>
Tue, 24 May 2016 17:30:02 +0000 (20:30 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 25 Nov 2019 15:06:59 +0000 (07:06 -0800)
commit38ab7289b5db4bdc33b9a0ac76fa4c4daa6c092c
treec79f7f66384a90d62401acf8e658baa3f8dd692c
parent99df1effea872636ee5b69677237edb1e71a3e67
windows.errors: make check-invalid-handle throw windows-error instances

There are two consequences:
- the thrown object is now a windows-error, previously it was a string;
- if GetLastError returns zero, nothing is thrown. Previously the string
"The operation completed successfully." was thrown in that case.
basis/windows/errors/errors.factor