This commit is contained in:
Andras Schmelczer 2025-03-16 17:52:40 +00:00
commit 7bf7790e1f
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,7 @@ impl Config {
pub async fn load_from_file(path: &Path) -> Result<Self> { pub async fn load_from_file(path: &Path) -> Result<Self> {
let contents = fs::read_to_string(path).await.with_context(|| { let contents = fs::read_to_string(path).await.with_context(|| {
format!( format!(
"Cannot load configuration from disk from ({})", "Cannot load configuration from disk from {}",
path.display() path.display()
) )
})?; })?;

View file

@ -79,7 +79,7 @@ impl Database {
.test_before_acquire(true) .test_before_acquire(true)
.connect_with(connection_options) .connect_with(connection_options)
.await .await
.with_context(|| format!("Cannot open database at '{}'", file_name.display()))?; .with_context(|| format!("Cannot open database at {}", file_name.display()))?;
Self::run_migrations(&pool).await?; Self::run_migrations(&pool).await?;

View file

@ -254,8 +254,6 @@ export class Database {
} }
private save(): void { private save(): void {
this.logger.debug(JSON.stringify(this.documents, null, 2));
this.ensureConsistency(); this.ensureConsistency();
void this.saveData({ void this.saveData({
documents: this.resolvedDocuments.map( documents: this.resolvedDocuments.map(