Issue Bug Closed

#98433Improve error message when the FlexForm file is not found

Lina Wolf 09/25/22, 09:26 updated 10/04/22, 08:36

Description

When I am using a FlexForm File that does not exist, i.e.

```
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
‘tea_tea’,
‘FILE:EXT:nonexistanextension/Configuration/FlexForms/Plugin.xml’
);
```

The following error is thrown:

```
Data structure file could not be resolved to an existing file
```

It does not display the name of the file not found but instead tries display the result of GeneralUtility::getFileAbsFileName, which is by definition an empty string if the file was not found

Reviews 1