briandelmsft / STAT-Function

Azure Function for the Microsoft Sentinel Triage AssistanT (STAT)
https://aka.ms/mstat
MIT License
8 stars 1 forks source link

Add STAT version to exception messages #88

Closed briandelmsft closed 1 week ago

briandelmsft commented 1 week ago

I've had a few situations come up where I am getting exceptions sent to me to troubleshoot and while the exception is clear, it's unclear which version of STAT it's happening and in a couple cases it's been bugs that were already fixed. This adds the installed version to the exception information.

I also refactored the code that checks the local version out of the base module and into the data module so it was accessible regardless of which module throws the exception

This includes an update for the test cases to test the new function and ensure it returns a version correctly

briandelmsft commented 1 week ago

I'm not sure why the actions didn't run on this PR.. going to try again with a new one