Update Debug Log Module.ps1

Created a function to throw errors when an evaluation is false to facility if-less programming by substituting if-then-else for try-catch-finally.