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

Tools: improved error handling for unitc #1303

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Tools: improved error handling for unitc #1303

merged 1 commit into from
Jun 12, 2024

Conversation

lcrilly
Copy link
Contributor

@lcrilly lcrilly commented Jun 6, 2024

This patch does a number of things to help when failing to apply a new
configuration.

  • The error body from the Unit control API is displayed which can have
    useful troubleshooting information (when the version of curl supports it).

  • When using the EDIT option, the temporary file with unapplied changes is
    preserved so that the user can edit it again without losing their work.

  • Editing JavaScript modules no longer requires that module to have been
    enabled.

  • Failure to apply edited JavaScript modules now rolls-back to the previous
    configuration instead of deleting the module.

@ac000 ac000 self-requested a review June 6, 2024 12:51
@callahad
Copy link
Collaborator

Looks reasonable to me. @ac000 can you handle merging please

This patch does a number of things to help when failing to apply a new
configuration.

* The error body from the Unit control API is displayed which can have
  useful troubleshooting information (when the version of curl supports it).

* When using the EDIT option, the temporary file with unapplied changes is
  preserved so that the user can edit it again without losing their work.

* Editing JavaScript modules no longer requires that module to have been
  enabled.

* Failure to apply edited JavaScript modules now rolls-back to the previous
  configuration instead of deleting the module.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
@ac000
Copy link
Member

ac000 commented Jun 12, 2024

Rebased with master...

@ac000 ac000 merged commit a7e3686 into nginx:master Jun 12, 2024
19 checks passed
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.

3 participants