Skip to content

Conversation

@Wires77
Copy link
Member

@Wires77 Wires77 commented Sep 10, 2025

#1322 and other issues with authentication has made me realize we don't handle subscript errors properly in some cases.

Notably, PoEAPI has a callback that accepts 3 parameters, which is fine when everything works. However, if there is an error in the subscript, launch:OnSubError() gets called and that callback receives only 2 parameters, the second one just being an error message that gets swallowed up. This PR fixes that so at least the error gets printed to the console.

To test this we can add a purposeful syntax error to either the LaunchServer script or the launch:DownloadPage one, as they both had issues of this nature.

@Wires77 Wires77 added bug Something isn't working pob1 Should also be merged into PoB1 Repo labels Sep 10, 2025
@LocalIdentity LocalIdentity merged commit 601a278 into PathOfBuildingCommunity:dev Sep 11, 2025
2 checks passed
@Alexander3a
Copy link

this commit gives me crashes when starting and loggin in

Subscript return 1: only nil, boolean, number and string can be returned from sub script

LocalIdentity pushed a commit that referenced this pull request Sep 11, 2025
@Wires77 Wires77 mentioned this pull request Sep 11, 2025
@Wires77 Wires77 removed the pob1 Should also be merged into PoB1 Repo label Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants