update to error strings in try/catch blocks
This commit is contained in:
@@ -42,7 +42,7 @@ if(-not (Test-Path $ResticExe)) {
|
|||||||
Get-ChildItem *.exe | Rename-Item -NewName $ExeName
|
Get-ChildItem *.exe | Rename-Item -NewName $ExeName
|
||||||
}
|
}
|
||||||
catch {
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ if($null -eq $backup_task) {
|
|||||||
Write-Output "[[Scheduler]] Backup task scheduled."
|
Write-Output "[[Scheduler]] Backup task scheduled."
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Error "[[Scheduler]] Setting up backup task schedule failed."
|
Write-Error "[[Scheduler]] Setting up backup task schedule failed: $_"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user