Skip to content

Commit 1f33f56

Browse files
committed
fix: catch all 5xx errors
1 parent 1048e92 commit 1f33f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ 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) {
31+
} else if (response.status >= 500 && response.status < 600) {
3232
// Handle WordPress server error
3333
errorLog(
3434
'Could not connect to the WordPress server. Please check your WordPress URL or server status, as your site may not function correctly.',

0 commit comments

Comments
 (0)