Resolve error messages format bug

This commit resolves the error message format which was displaying %s instead of the actual version