You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described PR #666 the introduced change (defaulting include_excl=true) could silently break components using file OPEN_CREATE mode.
This happened in one of the custom ComLoggers with resetOnMax option. The open file was breaking with error OTHER_ERROR which was not clear.
To reduce the ambiguity of the file open returned error on file exist we should add error EEXIST 17 /* File exists */
to the following:
Returning general error OTHER_ERROR might be ambiguous when a file exist. Adding a more specific error type such as FILE_EXISTS might help reduce the ambiguity of the file open issue.
The text was updated successfully, but these errors were encountered:
Feature Description
As described PR #666 the introduced change (defaulting
include_excl=true
) could silently break components using fileOPEN_CREATE
mode.This happened in one of the custom ComLoggers with resetOnMax option. The open file was breaking with error
OTHER_ERROR
which was not clear.To reduce the ambiguity of the file open returned error on file exist we should add error
EEXIST 17 /* File exists */
to the following:
fprime/Os/Linux/File.cpp
Lines 87 to 105 in 0d717b0
Rationale
Returning general error
OTHER_ERROR
might be ambiguous when a file exist. Adding a more specific error type such asFILE_EXISTS
might help reduce the ambiguity of the file open issue.The text was updated successfully, but these errors were encountered: