Skip to content

Commit

Permalink
Update fetch_data.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
MgramTheDuck authored Dec 10, 2024
1 parent bab988d commit 671272d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fetch_data.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ try {
write-host "Writing JSON data to data file directory"
$data | ConvertTo-Json | Set-Content -Path './_data/status.json'
} catch {
write-host "Something went wrong with fetching XIVApi data, maybe the API is down?"
New-Item -path './_data' -name 'status.json'
write-host "Something went wrong with fetching XIVApi data, maybe the API is down?, using old status file."
}

0 comments on commit 671272d

Please sign in to comment.