]> 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, 6 Jan 2020 21:18:33 +0000 (13:18 -0800)
commit77db1b1df38149a34490708ef205b05c3d67e56c
tree5c1a4c9be6a0d15cd2bc2746df12d3216ea02d9b
parent249b9166369453a964db8e49882687bd9ca7ecd6
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