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

Error handling to afterSaveLilypondPDF Method #4288

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

FirePheonix
Copy link
Contributor

@FirePheonix FirePheonix commented Jan 18, 2025

Fixes: #4257 - Add Error Handling to afterSaveLilypondPDF Method

@walterbender This PR adds functionality and UI for error handling in the afterSaveLilypondPDF method. The error-handling logic is currently kept inside commented-out code to ensure it does not interfere with the existing functionality. This will serve as a foundation for future development.

Steps to Reproduce the Error:

To simulate and observe the error-handling UI:

  1. Open index.html and uncomment line 508.
  2. In js/SaveInterface.js, uncomment line 413.
  3. Also, uncomment lines 434–436 in js/SaveInterface.js.
  4. Restart the application in your terminal.
  5. Clear the browser cache and reload the page.

Note: Server response errors take some time to invoke, so please watch the entire video till the end to see the error box appear.

Music.Blocks.-.Google.Chrome.2025-01-18.05-46-02.1.mp4

Proposal

If required, I can include and then comment out the debugging code in this PR to assist future development efforts. Let me know if you'd like me to proceed with this adjustment.

Additional details.

SOME MORE INFO ON WHAT ACTUALLY CAUSES THE ERROR???

After debugging for some time, I realized that the error is being invoked from the server side itself, rather than being a problem in the data being sent. Here's the debugging video.

404024146-2dec8672-f1db-4c5b-9eaf-847e343c6218.mp4

Here's the code responsible for server connectivity:
404025019-159e5b89-fb37-4ef7-b7bf-829136318886

@FirePheonix FirePheonix changed the title After save lilypond pdf Error handling to afterSaveLilypondPDF Method Jan 18, 2025
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.

Add Error Handling to afterSaveLilypondPDF Method
1 participant