You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pac solution Import fails with error but does not stop script #253
When running the pac solution import command in a PowerShell script, errors do not fail the script. When using pac solution pack errors do fail the script.
changed the title [-]pac Import fails with error but does not stop script[/-][+]pac solution Import fails with error but does not stop script[/+]on Dec 7, 2022
Activity
[-]pac Import fails with error but does not stop script[/-][+]pac solution Import fails with error but does not stop script[/+]rpothin commentedon Jan 12, 2023
Hi Craig Lund (@craig-lund),
Can you try to use the
$?automatic variable available in PowerShell to detect if there is an error?You can find an example of implementation I have done here.
I hope this idea will help you.