Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-DbaDatabaseSafely - Fix Exception handling #9115

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

andreasjordan
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes Remove-DbaDatabaseSafely - catch Block Doesn't Trigger On Failed Backup #9111 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

I hope I have found all missing "EnableException". From all the bugs we have found so far in this command - I would not recommend using it in production...

Has someone time to have a deeper look at this command? I personally don't have time for that.

@mattcargile
Copy link
Contributor

I did review all the code. I believe you found all the places for -EnableException.

Speaking of that, is dbatools designed to inherit for this parameter?

@potatoqualitee potatoqualitee merged commit f6a2b7b into development Oct 10, 2023
11 checks passed
@potatoqualitee potatoqualitee deleted the RemoveDbaDatabaseSafely_fix_9111 branch October 10, 2023 16:57
@potatoqualitee
Copy link
Member

@mattcargile because it's built into the library and actively part of the library, it does inherit the value. if it was an external command, it would not :O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove-DbaDatabaseSafely - catch Block Doesn't Trigger On Failed Backup
3 participants