1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

ui: improve warning message

This commit is contained in:
loks0n 2024-05-24 16:07:22 +01:00
parent e73b4b8573
commit cb4c15ce0a

View file

@ -522,7 +522,7 @@ App::init()
$response->addFilter(new ResponseV17());
}
if (version_compare($responseFormat, APP_VERSION_FORMAT, '>')) {
$response->addHeader('X-Appwrite-Warning', 'Request made with SDK for Appwrite version ' . $responseFormat . '. Response format is meant for Appwrite version ' . APP_VERSION_FORMAT . '. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks');
$response->addHeader('X-Appwrite-Warning', "The current SDK is built fors Appwrite ${responseFormat}. However, the current Appwrite server version is ${APP_VERSION_STABLE}. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks');
}
}