Skip to content

Improve error messages #40

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
merged 1 commit into from
Jul 3, 2020
Merged

Improve error messages #40

merged 1 commit into from
Jul 3, 2020

Conversation

Shatur
Copy link
Collaborator

@Shatur Shatur commented Jul 1, 2020

  • Show shortcut in errors.
  • Make errors translatable.

Before:

QHotkey: Failed to register hotkey. Error: BadAccess (attempt to access private resource denied)
QHotkey: Failed to unregister hotkey. Error: BadAccess (attempt to access private resource denied)
QHotkey: Failed to register hotkey. Error: BadAccess (attempt to access private resource denied)
QHotkey: Failed to unregister hotkey. Error: BadAccess (attempt to access private resource denied)
QHotkey: Failed to register hotkey. Error: BadAccess (attempt to access private resource denied)

After:

QHotkey: "Failed to register Ctrl+Alt+E. Error: BadAccess (attempt to access private resource denied)"
QHotkey: "Failed to register Ctrl+Alt+S. Error: BadAccess (attempt to access private resource denied)"
QHotkey: "Failed to register Ctrl+Alt+G. Error: BadAccess (attempt to access private resource denied)"
QHotkey: "Failed to register Ctrl+Alt+F. Error: BadAccess (attempt to access private resource denied)"
QHotkey: "Failed to register Ctrl+Alt+C. Error: BadAccess (attempt to access private resource denied)"

Also users will be less confused (crow-translate/crow-translate#149).

* Show information about shortcut.
* Make errors translatable.
@Skycoder42 Skycoder42 self-assigned this Jul 3, 2020
@Skycoder42 Skycoder42 merged commit 4f76792 into Skycoder42:master Jul 3, 2020
@Shatur Shatur deleted the improve-error-messages branch July 3, 2020 06:50
@Shatur
Copy link
Collaborator Author

Shatur commented Jul 3, 2020

@Skycoder42, could you draft a new minor release with this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy