aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src/errors.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-11-09 17:40:25 +0100
committerTeddy Wing2018-11-09 17:40:25 +0100
commit51e3dd528919599c3d2beff56c59a4cb7fe24371 (patch)
tree6722d3b2ef4b57267380e83396456697142800da /license-generator/src/errors.rs
parent0644f4f05552e4e0eca28a933e99123df50b1dc1 (diff)
downloaddome-key-web-51e3dd528919599c3d2beff56c59a4cb7fe24371.tar.bz2
Extract code in `lib.rs` to `errors.rs` and `purchaser.rs`
Split up the code to get things a bit more organised. I want a function to create a connection to the MySQL database and I don't want to lump it in with the rest.
Diffstat (limited to 'license-generator/src/errors.rs')
-rw-r--r--license-generator/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/license-generator/src/errors.rs b/license-generator/src/errors.rs
new file mode 100644
index 0000000..7eb9eda
--- /dev/null
+++ b/license-generator/src/errors.rs
@@ -0,0 +1,7 @@
+use mysql;
+
+error_chain! {
+ foreign_links {
+ MySql(mysql::error::Error);
+ }
+}