Skip to content

Commit

Permalink
fix spacing on directory input error prompts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybottles committed Jan 12, 2025
1 parent e18117f commit 50c5ec8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Hawk/internal/functions/Initialize-HawkGlobalObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
$FullOutputPath = Join-Path $RootPath $FolderID

if (Test-Path $FullOutputPath) {
Write-Information "[$timestamp] - [ERROR] - Path $FullOutputPath already exists"
Write-Information "[$timestamp] - [ERROR] - Path $FullOutputPath already exists"
}
else {
Write-Information "[$timestamp] - [ACTION] - Creating subfolder $FullOutputPath"
Expand All @@ -125,7 +125,7 @@
}
catch {
# If it fails at any point, display an error message
Write-Error "[$timestamp] - [ERROR] - Failed to create logging folder: $_"
Write-Error "[$timestamp] - [ERROR] - Failed to create logging folder: $_"
}
}

Expand Down Expand Up @@ -155,7 +155,7 @@
}
# If the path is invalid, prompt again
else {
Write-Host "[$timestamp] - [ERROR] - Path not a valid directory: $UserPath" -ForegroundColor Red
Write-Information "[$timestamp] - [ERROR] - Path not a valid directory: $UserPath"
$ValidPath = $false
}
}
Expand All @@ -169,7 +169,7 @@
}
# If the provided path fails validation, stop the process
else {
Write-Error "[$timestamp] - [ERROR] - Provided path is not a valid directory: $Path" -ErrorAction Stop
Write-Error "[$timestamp] - [ERROR] - Provided path is not a valid directory: $Path"
}
}

Expand Down

0 comments on commit 50c5ec8

Please sign in to comment.