minor update to error strings
This commit is contained in:
+4
-4
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ if(-not [String]::IsNullOrEmpty($GlobalParameters)) {
|
|||||||
if ([String]::IsNullOrEmpty($SelfUpdateEnabled) -or ($SelfUpdateEnabled -eq $true)) {
|
if ([String]::IsNullOrEmpty($SelfUpdateEnabled) -or ($SelfUpdateEnabled -eq $true)) {
|
||||||
Invoke-Expression "$ResticExe self-update"
|
Invoke-Expression "$ResticExe self-update"
|
||||||
if($LASTEXITCODE) {
|
if($LASTEXITCODE) {
|
||||||
Write-Warning "[[Update]] Restic self-update failed. Check errors and resolve: $_"
|
Write-Warning "[[Update]] Restic self-update failed. Check errors and resolve."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ if(-not (Test-Path $LocalExcludeFile)) {
|
|||||||
# Initialize the restic repository
|
# Initialize the restic repository
|
||||||
Invoke-Expression "$ResticExe --verbose init"
|
Invoke-Expression "$ResticExe --verbose init"
|
||||||
if($LASTEXITCODE) {
|
if($LASTEXITCODE) {
|
||||||
Write-Warning "[[Init]] Repository initialization failed. Check errors and resolve: $_"
|
Write-Warning "[[Init]] Repository initialization failed. Check errors and resolve."
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Output "[[Init]] Repository successfully initialized."
|
Write-Output "[[Init]] Repository successfully initialized."
|
||||||
@@ -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