diff options
author | Stephen Gutekanst <stephen.gutekanst@gmail.com> | 2015-01-19 02:12:23 -0700 |
---|---|---|
committer | Dmitri Shuralyov <shurcooL@gmail.com> | 2015-02-21 18:51:43 -0800 |
commit | 73235b1b810d98dabbde060aaa2a17235eb897e1 (patch) | |
tree | b8eaa9637cb30e3dbf5be24120981bb87aca5992 | |
parent | d097dca2deb07203ace155a04d2113b2837d16e9 (diff) | |
download | glfw-73235b1b810d98dabbde060aaa2a17235eb897e1.tar.gz |
Switch on error codes in the same order as they are declared.
-rw-r--r-- | error.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ func fetchError() error { select { case err := <-lastError: switch err.Code { - case outOfMemory, invalidEnum, invalidValue, notInitialized, noCurrentContext: + case notInitialized, noCurrentContext, invalidEnum, invalidValue, outOfMemory: panic(err) default: return err |