aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gutekanst <stephen.gutekanst@gmail.com>2015-01-19 02:12:23 -0700
committerDmitri Shuralyov <shurcooL@gmail.com>2015-02-21 18:51:43 -0800
commit73235b1b810d98dabbde060aaa2a17235eb897e1 (patch)
treeb8eaa9637cb30e3dbf5be24120981bb87aca5992
parentd097dca2deb07203ace155a04d2113b2837d16e9 (diff)
downloadglfw-73235b1b810d98dabbde060aaa2a17235eb897e1.tar.gz
Switch on error codes in the same order as they are declared.
-rw-r--r--error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.go b/error.go
index 404955b..b622e40 100644
--- a/error.go
+++ b/error.go
@@ -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