I believe you're trying to translate the error code (-2) into the string. This is not actually possible; when code in SMILE logs an error it passes an error code and a string which may include context-specific information, like node ID etc. You may consider using this approach instead:
Code: Select all
cout << ErrorH.GetLastErrorMessage() << endl
You can also redirect all errors to console or to file with ErrorH.RedirectToFile. An advanced option is to use DSL_errorStringRedirect to provide your own class which is notified whenever something gets logged.