Skip to content

Fix various issues with subscript errors#1345

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
Wires77:fix_subscript_errors
Sep 11, 2025
Merged

Fix various issues with subscript errors#1345
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
Wires77:fix_subscript_errors

Conversation

@Wires77

@Wires77 Wires77 commented Sep 10, 2025

Copy link
Copy Markdown
Member

#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
Copy Markdown

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
bct8925 pushed a commit to bct8925/PathOfBuilding-PoE2 that referenced this pull request Jun 19, 2026
* Fix various issues with subscript errors

* Missed PoEAPI change
bct8925 pushed a commit to bct8925/PathOfBuilding-PoE2 that referenced this pull request Jun 19, 2026
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