pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Connect-PnPOnline does not respect ErrorAction parameter #2196

Open heinrich-ulbricht opened 5 years ago

heinrich-ulbricht commented 5 years ago

Reporting an Issue or Missing Feature

Issue

Expected behavior

Connect-PnPOnline -ErrorAction Stop stops script execution on error, e.g. when the URL is wrong.

Actual behavior

The -ErrorAction parameter is being ignored, script execution continues.

Steps to reproduce behavior

Related: #1653

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.11.1907.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 5 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

DDog80sRocked commented 4 years ago

The same issue occurs with Disconnect-PNPOnline. It doesn't respect ErrorAction or ErrorActionPreference.