Just for testing, let importing the db always fail - .context() just overwrites the underlying error!!!!!

This commit is contained in:
Hocuri
2020-09-16 15:00:36 +02:00
parent 396ccebb5c
commit 27e53ddbff
2 changed files with 11 additions and 2 deletions

View File

@@ -96,6 +96,15 @@ impl Sql {
res.map_err(|e| format_err!("Could not open db: {}", e))
}
pub async fn openh<T: AsRef<Path>>(
&self,
context: &Context,
dbfile: T,
readonly: bool,
) -> crate::error::Result<()> {
Err(format_err!("This is the actual error the user should see"))
}
pub async fn execute<S: AsRef<str>>(
&self,
sql: S,