summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-09-29 23:48:01 -0500
committerStuart Stock <stuart@int08h.com>2018-09-29 23:48:01 -0500
commit146ed83d361ffd44d09e3879dde809150bb07a7a (patch)
treec5d4defd34d1f58feb36a9b5fa5b55e490683749 /src/error.rs
parent606b144dc40ed418253d26bb56bcbe9469d04cf1 (diff)
downloadroughenough-146ed83d361ffd44d09e3879dde809150bb07a7a.zip
Major refeactoring for better code structure
* Extract distinct types for online and long-term keys * Extract and create separate configuration trait and implementation(s) * Clean-ups, renames, tidying
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 5833f2d..b681f33 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,4 +1,4 @@
-// Copyright 2017 int08h LLC
+// Copyright 2017-2018 int08h LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -48,6 +48,9 @@ pub enum Error {
/// Otherwise invalid request
InvalidRequest,
+
+ /// Runtime configuration is invalid for the reason provided
+ InvalidConfiguration(String),
}
impl From<std::io::Error> for Error {