diff options
author | Teddy Wing | 2018-11-13 05:39:15 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-13 05:39:15 +0100 |
commit | e8f8a6737f6b3a612d6243be94e98dde7071859f (patch) | |
tree | 813fe34e898bacaa6828988aa09fa2363f32b0ce /license-generator/src/errors.rs | |
parent | b02f3aac30557167f8f81c1294094426c34a2c35 (diff) | |
download | dome-key-web-e8f8a6737f6b3a612d6243be94e98dde7071859f.tar.bz2 |
license: Remove `unwrap`s
Respond with a 500 on error.
Add 'aquatic-prime' to `foreign_links` errors to be able to convert it
with `into()`.
Diffstat (limited to 'license-generator/src/errors.rs')
-rw-r--r-- | license-generator/src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/license-generator/src/errors.rs b/license-generator/src/errors.rs index 352f959..2d1182b 100644 --- a/license-generator/src/errors.rs +++ b/license-generator/src/errors.rs @@ -1,3 +1,4 @@ +use aquatic_prime; use log; use mysql; use paddle; @@ -13,6 +14,7 @@ error_chain! { MySql(mysql::error::Error); Zip(zip_lib::result::ZipError); + AquaticPrime(aquatic_prime::errors::Error); Paddle(paddle::errors::Error); } } |