GeertBellekens / Enterprise-Architect-Toolpack

Addins and tools for Sparx Systems Enterprise Architect
https://bellekens.com/product/bellekens-enterprise-architect-toolpack/
BSD 2-Clause "Simplified" License
101 stars 41 forks source link

EA-Matic: Fail with error when getIncludedcode can not find key includeString in includableScripts #120

Open baerrach opened 1 year ago

baerrach commented 1 year ago

The code currently will silently return an empty string for an include string that can not be matched. This should fail with an exception instead.

EAAddinFramework/EASpecific/Script.cs/getIncludedcode()


            string includedCode = string.Empty;
            if (includableScripts.ContainsKey(includeString))
            {
                includedCode = includableScripts[includeString];
            }
baerrach commented 1 year ago

Logs now include EA-Matic output tab

12:51:04.415 Error: Error in loading code for script EA-Matic Apply Access Relation Unspecified Navigability On New Connector: Could not find script to include for $!INC Utils.Util ERROR :  | Line of error: 0 | Code error: 

EAAddinFramework.log 24-05-2023 01:24:08.669 diff: 0 ms Error: Error: Error in loading code for script EA-Matic Apply Access Relation Unspecified Navigability On New Connector: Could not find script to include for $!INC Utils.Util ERROR : | Line of error: 0 | Code error: