From a13b26c1c90707056e5d4e36d67563fc91467871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Pej=C5=A1a?= Date: Thu, 28 Mar 2019 18:49:17 +0100 Subject: Check if we have permissions to create files. --- src/errors.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index f42cc02..1eaa7c7 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -16,6 +16,9 @@ pub enum FileUploadErrorKind { /// This error may occur when trying to write incoming file to disk #[fail(display = "Failed to create or write to file")] IOError(std::io::Error), + /// This error will occur when we he have insuffictent permissions to create new file + #[fail(display = "Insuffitient permissions to create file")] + InsufficientPermissions, } /// Kinds of errors which might happen during the generation of an archive -- cgit v1.2.3