Skip to content

Fix error messages in bleio#1692

Merged
dhalbert merged 1 commit into
adafruit:masterfrom
pypewpew:typo1
Mar 25, 2019
Merged

Fix error messages in bleio#1692
dhalbert merged 1 commit into
adafruit:masterfrom
pypewpew:typo1

Conversation

@deshipu
Copy link
Copy Markdown

@deshipu deshipu commented Mar 25, 2019

No description provided.

@dhalbert
Copy link
Copy Markdown
Collaborator

Travis failed due to translations in the first subjob.

@deshipu
Copy link
Copy Markdown
Author

deshipu commented Mar 25, 2019

Sorry, forgot to run make translate again.

Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

👍

@dhalbert dhalbert merged commit 18d67be into adafruit:master Mar 25, 2019
Copy link
Copy Markdown
Collaborator

@jerryneedell jerryneedell left a comment

Choose a reason for hiding this comment

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

question about error messages -- sorry I'm late

m_tx_in_progress--;
mp_raise_OSError_msg_varg(translate("Failed to notify or indicate attribute value, err %0x04x"), err_code);
mp_raise_OSError_msg_varg(translate("Failed to notify or indicate attribute value, err x0%04x"), err_code);
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be 0x%04x ?

if (err_code != NRF_SUCCESS) {
mp_raise_OSError_msg_varg(translate("Failed to read attribute value, err %0x04x"), err_code);
mp_raise_OSError_msg_varg(translate("Failed to read attribute value, err x0%04x"), err_code);
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as above 0x%04x

@dhalbert
Copy link
Copy Markdown
Collaborator

Good point, @jerryneedell. I should have looked more carefully. @deshipu could you submit another PR?

@deshipu
Copy link
Copy Markdown
Author

deshipu commented Mar 25, 2019

Sure, sorry about that. Looks like those messages are cursed...

@deshipu
Copy link
Copy Markdown
Author

deshipu commented Mar 25, 2019

Done in #1699

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.

3 participants