aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-20 19:34:34 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-20 19:34:34 +0200
commitba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 (patch)
tree231965fb1e033d15a5e331c0eab38022fadfd7ce /src/lib.rs
parentca1eb8dc533301060e2b2768646b15d79c8be60c (diff)
downloadglutin-ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673.tar.gz
glutin-ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673.zip
Add CreationError::RobustnessNotSupported
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
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.",
}
}
}