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

Show better error messages when talking to MusicBrainz. #19

Merged
merged 11 commits into from
Jun 25, 2013

Conversation

kain88-de
Copy link
Member

https://bugs.launchpad.net/mixxx/+bug/1184158

Show a more meaningfull error message when mixxx fails to reload metadata from the internet.

If we get a HTTPErrorCode from the service it will show the error and service.
If we don't get a HTTPErrorCode a more generic site is shown naming the service that failed.
To test this behaviour just mess up the URL variables in acoustidclient.cpp and musicbrainzclient.cpp

I haven't touched the .ui files much. I would like to have some words centered and in bold but I can't figure out how this is done without using HTML in the QLabel. Jus do you know a way to do this in QtDesigner?

@@ -75,7 +75,9 @@ void AcoustidClient::requestFinished() {
int id = m_requests.take(reply);

if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() != 200) {
emit finished(id, QString());
emit networkError(
Copy link
Member

Choose a reason for hiding this comment

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

Whoops, can you put parens after emit?

emit(foo);

Copy link
Member Author

Choose a reason for hiding this comment

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

Well I can do

emit foo(bar);

Copy link
Member

Choose a reason for hiding this comment

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

emit(foo(bar)); is how we do it everywhere in Mixxx. Today Qt defines emit as an empty statement which is why that works but in the future they could change that.

@rryan
Copy link
Member

rryan commented Jun 22, 2013

Looks good other than those minor comments. Thanks!

@kain88-de
Copy link
Member Author

It looks ok using the style options for the QLabel

screenshot from 2013-06-23 18 28 30
screenshot from 2013-06-23 18 35 16

@rryan
Copy link
Member

rryan commented Jun 25, 2013

Cool -- thanks for the fixes!

rryan added a commit that referenced this pull request Jun 25, 2013
Show better error messages when talking to MusicBrainz.
@rryan rryan merged commit 66e9a46 into master Jun 25, 2013
@daschuer daschuer mentioned this pull request Dec 28, 2014
@daschuer daschuer mentioned this pull request Aug 13, 2017
19 tasks
@daschuer daschuer mentioned this pull request Jun 11, 2018
11 tasks
Holzhaus pushed a commit that referenced this pull request Sep 23, 2021
CI: Update Docker image for GitHub pre-commit workflow
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants