Skip to content

Show the actual error message in the error popup#2263

Open
thecreare wants to merge 10 commits into
PixelGuys:masterfrom
thecreare:error-message
Open

Show the actual error message in the error popup#2263
thecreare wants to merge 10 commits into
PixelGuys:masterfrom
thecreare:error-message

Conversation

@thecreare

Copy link
Copy Markdown
Contributor

Adds raiseError function to the error_prompt window that

  • If the window is closed, opens it and shows the error
  • If the window is open, increments the error count

Fixes #1554

image image image image

@BoySanic BoySanic moved this to WIP/not ready for review in PRs to review Nov 13, 2025
@thecreare thecreare marked this pull request as ready for review December 1, 2025 20:37
@Wunka

Wunka commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

This PR seems to been missed...
If you have time please resolve the merge conflicts that are now after the time there.
With this writing the PR is in my mail so if you make a comment that you have resolved the conflicts I can move it to be reviewed

@thecreare

Copy link
Copy Markdown
Contributor Author

Resolved the conflicts and tested it

@Wunka Wunka moved this from WIP/not ready for review to Low Priority in PRs to review May 10, 2026
@Wunka

Wunka commented May 10, 2026

Copy link
Copy Markdown
Contributor

Nice, I moved into prs to review. sorry again that this was missed before

@Wunka Wunka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just small nitpicks

Comment thread src/gui/windows/error_prompt.zig Outdated
Comment thread src/gui/windows/error_prompt.zig Outdated
Comment thread src/gui/windows/error_prompt.zig Outdated
const Button = @import("../components/Button.zig");

var overflowErrorCount: u32 = 0;
var errorText: ?[]const u8 = null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make your life easy: Allocators will ignore zero-length allocations.

Suggested change
var errorText: ?[]const u8 = null;
var errorText: []const u8 = "";

Comment thread src/main.zig
}

if (level == .err and !openingErrorWindow and !settings.launchConfig.headlessServer) {
openingErrorWindow = true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exists to prevent infinite recursion when there is an error while trying to open the error window.
(this e.g. happens when there is an error before the gui is initialized)

@IntegratedQuantum IntegratedQuantum moved this from Low Priority to In review in PRs to review May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Show the actual error message in the error popup

4 participants