mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 23:11:13 +00:00
Improved diagnostic message in case of a circular definition.
This commit is contained in:
parent
780d5e60c2
commit
645abc5ab1
|
@ -205,7 +205,9 @@ namespace Bind.Structures
|
||||||
throw new ArgumentNullException("enums");
|
throw new ArgumentNullException("enums");
|
||||||
|
|
||||||
if (++CurrentReferenceDepth >= MaxReferenceDepth)
|
if (++CurrentReferenceDepth >= MaxReferenceDepth)
|
||||||
throw new InvalidOperationException("Enum specification contains cycle");
|
throw new InvalidOperationException(String.Format(
|
||||||
|
"Enum specification contains cycle: {0}",
|
||||||
|
c.ToString()));
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(c.Reference))
|
if (!String.IsNullOrEmpty(c.Reference))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue