about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/database/mod.rs b/src/database/mod.rs
index f0a1e4b..cdd5c43 100644
--- a/src/database/mod.rs
+++ b/src/database/mod.rs
@@ -30,9 +30,9 @@ pub enum ErrorKind {
 
 #[derive(Debug)]
 pub struct StorageError {
-    pub msg: String,
+    msg: String,
     source: Option<Box<dyn std::error::Error>>,
-    pub kind: ErrorKind
+    kind: ErrorKind
 }
 unsafe impl Send for StorageError {}
 unsafe impl Sync for StorageError {}
@@ -99,6 +99,9 @@ impl StorageError {
     pub fn kind(&self) -> ErrorKind {
         self.kind
     }
+    pub fn msg(&self) -> &str {
+        &self.msg
+    }
 }