Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/few-bats-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@faustwp/cli': patch
---

Previously, WordPress connection failures lacked clear feedback. This update adds a proper error message when a 500 error occurs, improving debugging and usability.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export async function validateNextWordPressUrl(): Promise<void> {
warnLog(
'Route not found: Please update your FaustWP plugin to the latest version.',
);
} else if (response.status >= 500 && response.status < 600) {
// Handle WordPress server error
errorLog(
'Could not connect to the WordPress server. Please check your WordPress URL or server status, as your site may not function correctly.',
);
} else {
errorLog(
'Validation Failed: Your Faust front-end site URL value is misconfigured. It should NOT match the `NEXT_PUBLIC_WORDPRESS_URL.`',
Expand Down
Loading