rockcarver / frodo-cli

A CLI to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.
MIT License
17 stars 14 forks source link

Improve `frodo script import -A --watch` to not exit on error #276

Closed vscheuber closed 1 year ago

vscheuber commented 1 year ago

It appears that in watch mode any error terminates the process immediately. However, there are plenty of reasons for errors and the watch should simply report them and stay up and running:

% frodo script import -A -w frodo-dev
Connected to...
Invalid JavaScript: Line 23: Unexpected identifier
Error importing script 'MobileOTP: Validate OTP In Profile Attribute': Script is not valid
Error importing script: Import error:
Error importing script 'MobileOTP: Validate OTP In Profile Attribute': Script is not valid
%