noticed this whilst reworking some clauses. If I have the same internal snippet name twice in a clause, the error message is “Unknown”.
I think having a clearer error message here would be helpful. It was obvious to me in this case, but getting an “Unknown” error can be very frustrating if you can’t figure out what is causing it.
After some more trial and error, I am now unsure what is actually causing this error.
Here are all the internal snippets I have:
CONVERT = @cycle(#cla^loan, “single”, @SINGLE, “maybe”, @MAYBE,“series”, @SERIES, “”, @MAYBE)
MAYBE = @#hgi(?TXT := ?MAYBE)
SERIES = ?SERIES
SERIES = the @bookmark-link(“cla-year”) Convertibles
MAYBE = @SERIES // @SINGLE
SINGLE = ?SINGLE
SINGLE = the Convertible Loan under this Agreement
Sometimes, having two internal snippets with the same name leads to a syntax error, sometimes it does not. Not sure if it is cause by the interplay of ?PLACEHOLDERS
I will leave this up, but maybe this is not the obvious fix I initially thought. Just goes to show how confusing the “Unknown error” is to troubleshoot.