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
For cases where there are no errors, but warnings, we need a way to provide these to the caller.
This could be done in a similar way to OpenSSL
"The OpenSSL is a cross-platform shared library that had much the same problem to solve. Their method has the library record detailed error information in an internal error queue, which the application can request when an error return value is seen and then present to the user in whichever way is appropriate." ... "There is a function provided for the application to request the "next error". This removes the earliest error from the internal queue, and returns it to the application".
So as warnings are generated as we read and validate the MWA files, we push a warning to the queue.
The caller / client app can pop them off until queue is empty and do whatever with them (log, print to stdout/stderr).
The text was updated successfully, but these errors were encountered:
For cases where there are no errors, but warnings, we need a way to provide these to the caller.
This could be done in a similar way to OpenSSL
"The OpenSSL is a cross-platform shared library that had much the same problem to solve. Their method has the library record detailed error information in an internal error queue, which the application can request when an error return value is seen and then present to the user in whichever way is appropriate." ... "There is a function provided for the application to request the "next error". This removes the earliest error from the internal queue, and returns it to the application".
So as warnings are generated as we read and validate the MWA files, we push a warning to the queue.
The caller / client app can pop them off until queue is empty and do whatever with them (log, print to stdout/stderr).
The text was updated successfully, but these errors were encountered: