Skip to content

Commit 7cbe73a

Browse files
committed
fix: add proper error message for failing WordPress instance
1 parent a7d0013 commit 7cbe73a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/faustwp-cli/src/healthCheck/validateNextWordPressUrl.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export async function validateNextWordPressUrl(): Promise<void> {
2828
warnLog(
2929
'Route not found: Please update your FaustWP plugin to the latest version.',
3030
);
31+
} else if (response.status === 500) {
32+
// Handle WordPress server error
33+
errorLog(
34+
'Could not connect to the WordPress server. Please check your WordPress URL or server status, as your site may not function correctly.',
35+
);
3136
} else {
3237
errorLog(
3338
'Validation Failed: Your Faust front-end site URL value is misconfigured. It should NOT match the `NEXT_PUBLIC_WORDPRESS_URL.`',

0 commit comments

Comments
 (0)