MCPcopy Create free account
hub / github.com/SmingHub/Sming / fileGetErrorString

Function fileGetErrorString

Sming/Core/FileSystem.h:215–222  ·  view source on GitHub ↗

@brief get the text for a returned error code * @param err * @retval String */

Source from the content-addressed store, hash-verified

213 * @retval String
214 */
215inline String fileGetErrorString(int err)
216{
217 auto fileSystem = getFileSystem();
218 if(fileSystem == nullptr) {
219 return IFS::Error::toString(err);
220 }
221 return fileSystem->getErrorString(err);
222}
223
224/** @brief Create or replace file with defined content
225 * @param fileName Name of file to create or replace

Callers 2

onCommandMethod · 0.85
checkFileAccessMethod · 0.85

Calls 3

getFileSystemFunction · 0.85
toStringFunction · 0.50
getErrorStringMethod · 0.45

Tested by

no test coverage detected