FIX Update Restler API to 3.1.1 to fix error with php8

This commit is contained in:
Laurent Destailleur
2020-12-23 17:25:38 +01:00
parent b036641ded
commit fd8bfcfd3b
58 changed files with 437 additions and 298 deletions

View File

@@ -707,7 +707,7 @@ class Documents extends DolibarrApi
if (!empty($createdirifnotexists)) {
if (dol_mkdir($upload_dir) < 0) { // needed by products
throw new RestException(500, 'Error while trying to create directory.');
throw new RestException(500, 'Error while trying to create directory '.$upload_dir);
}
}