update to error strings in try/catch blocks

This commit is contained in:
Kevin Woley
2025-02-20 15:32:55 -08:00
parent d7bc684e33
commit 033bdb3afd

View File

@@ -42,7 +42,7 @@ if(-not (Test-Path $ResticExe)) {
Get-ChildItem *.exe | Rename-Item -NewName $ExeName
}
catch {
Write-Error "[[Install]] restic.exe download failed. Check errors and resolve."
Write-Error "[[Install]] restic.exe download failed. Check errors and resolve: $_"
exit 1
}
}
@@ -94,7 +94,7 @@ if($null -eq $backup_task) {
Write-Output "[[Scheduler]] Backup task scheduled."
}
catch {
Write-Error "[[Scheduler]] Setting up backup task schedule failed."
Write-Error "[[Scheduler]] Setting up backup task schedule failed: $_"
}
}
else {