Make SetImaqError actually set the error

Change-Id: Ib714a2ff380319c60f42c859454441e4b69736e0
This commit is contained in:
Kevin O'Connor
2014-12-12 14:36:27 -05:00
parent 07619a37a0
commit ca5dfbe492

View File

@@ -91,11 +91,11 @@ void ErrorBase::SetImaqError(int success, const char *contextMessage, const char
{
// If there was an error
if (success <= 0) {
//TODO: ??? char err[256];
// XXX: sprintf(err, "%s: %s", contextMessage, imaqGetErrorText(imaqGetLastError()));
char err[256];
sprintf(err, "%i: %s", success, contextMessage);
// Set the current error information for this object.
// XXX: m_error.Set(imaqGetLastError(), err, filename, function, lineNumber, this);
m_error.Set(success, err, filename, function, lineNumber, this);
// Update the global error if there is not one already set.
Synchronized mutex(_globalErrorMutex);