Skip to content

Commit

Permalink
Enable recovering without local db backup (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
dleutenegger authored Dec 13, 2023
1 parent d5039f2 commit 42bb9db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::errors::Result;
use crate::symmetric_encryption::{decrypt, encrypt};
use crate::{runtime_error, RuntimeErrorCode};
use graphql::GraphQlRuntimeErrorCode;
use log::warn;
use perro::MapToError;
use squirrel::{Backup, RemoteBackupClient};
use std::fs;
Expand Down Expand Up @@ -52,10 +53,8 @@ impl BackupManager {
code: GraphQlRuntimeErrorCode::ObjectNotFound,
..
}) => {
runtime_error!(
RuntimeErrorCode::BackupNotFound,
"No backup was found in remote"
)
warn!("No backup was found in remote, recovering without");
return Ok(());
}
Err(e) => {
runtime_error!(
Expand Down

0 comments on commit 42bb9db

Please sign in to comment.