Skip to content

fixed error handling so UI grabs right field to display #2772

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

Merged

Conversation

virajmehta
Copy link
Member

@virajmehta virajmehta commented Jul 10, 2025

under the current main prior to this PR I got an error that logged this:

image

but then saw "Failed" as the message on the screen. I have now fixed this.

here is what you get now:

image

not pretty, but much more useful


Important

Fix error handling to display detailed error messages in UI by updating main.rs and client.ts.

  • Error Handling:
    • In main.rs, change job.val["status"] to "failed" and job.val["error"] to include detailed error message.
    • In client.ts, update NativeSFTJob to stringify jobStatus.error for "failed" status, ensuring detailed error message is displayed in UI.
  • Misc:
    • Add block for "failed" case in client.ts to handle error message formatting.

This description was created by Ellipsis for cb2e30b. You can customize this summary. It will automatically update as commits are pushed.

@GabrielBianconi GabrielBianconi added this pull request to the merge queue Jul 10, 2025
Merged via the queue into main with commit 6fce639 Jul 10, 2025
28 checks passed
@GabrielBianconi GabrielBianconi deleted the viraj/fix-sft-error-handling-correctly-this-time branch July 10, 2025 20:42
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.

2 participants