Endpoint disappears in Endpoint list, if it contains a syntax error

Product: PowerShell Universal
Version: 1.5.16

If I edit an endpoint and the script contains a syntax error it seems, that the endpoint disappears from the list of endpoints in the management overview. And sometimes it even gets deleted in the endpoints.ps1 (but this second step seem not happening everytime).

It would be great, if a warning is displayed before it happens (I don’t know how this could be done, but I’m sure, that it can be done).

I’ll open an issue for this. I think we should enforce something across all scripts to check for syntax errors and notify the user before saving anything.