diff --git a/wpilibc/wpilibC++/src/ErrorBase.cpp b/wpilibc/wpilibC++/src/ErrorBase.cpp index f4f26f9d07..f9151dbd46 100644 --- a/wpilibc/wpilibC++/src/ErrorBase.cpp +++ b/wpilibc/wpilibC++/src/ErrorBase.cpp @@ -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);