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

Suggestion: show errors #203

Open
mshavliuk opened this issue May 8, 2023 · 0 comments
Open

Suggestion: show errors #203

mshavliuk opened this issue May 8, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mshavliuk
Copy link
Collaborator

Problem

At the moment, all of the validation errors in the app get printed to the Matlab command window and may be missed, although they should bring user's attention since they are the direct consequence of their actions and do not allow to continue the initiated operations.

Example:

  1. User starts Zeffiro Interface and loads Multicompartment head project
  2. Open ES Workbench, set desired parameters
  3. Click "Find currents"
  4. Confirm calculations

It looks like nothing happens at this point. Meanwhile there is an error printed to stderr:

Error using zef_ES_find_currents (line 108)
ZI: No discretized sources found. Perhaps you forgot to calculate or load them...?
 
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 427)
Error while evaluating Button PrivateButtonPushedFcn.

So at the end, asking user if they absolutely want to perform computations attracts much more attention than the fact, that they cannot be performed due to an absence of tES lead field.

Suggestion

Using builtin tools for showing errors in GUI:

errordlg(sprintf('Error: %s', exception.message), 'Error');

Screenshot 2023-05-08 at 10 44 57

This would also make it possible to use ZI as a standalone app, which otherwise is impossible due to using command window as a communication channel.

@mshavliuk mshavliuk added the enhancement New feature or request label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants