Skip to content

Commit 0cfe338

Browse files
committed
fix(backups): including DB name in exception
1 parent 946da21 commit 0cfe338

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AgDatabase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public List<BackupMetadata> RecentBackups()
142142

143143
// find all backups in that chain
144144
if (fullBackupLsnBag.Count == 0)
145-
throw new Exception("Could not find any full backups");
145+
throw new Exception($"Could not find any full backups for DB '{Name}'");
146146

147147
var databaseBackupLsn = fullBackupLsnBag.Max();
148148
var bag = new ConcurrentBag<BackupMetadata>();

0 commit comments

Comments
 (0)