From ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 20 Jul 2015 19:34:34 +0200 Subject: Add CreationError::RobustnessNotSupported --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index d43dcfb..d5f563a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,6 +109,7 @@ pub trait GlContext { pub enum CreationError { OsError(String), NotSupported, + RobustnessNotSupported, } impl CreationError { @@ -116,6 +117,8 @@ impl CreationError { match *self { CreationError::OsError(ref text) => &text, CreationError::NotSupported => "Some of the requested attributes are not supported", + CreationError::RobustnessNotSupported => "Your requested robustness, but it is \ + not supported.", } } } -- cgit v1.2.3