Skip to content

feat(error_code): Add more verbose error code #37

@MrKevinWeiss

Description

@MrKevinWeiss

Currently the console gives feedback if something fails such as

==============================================================================
tests_periph_timer                                                            
==============================================================================
tests_periph_timer.Periph Timer Base :: Verify basic functionality of the P...
==============================================================================
Timer Init Should Succeed :: Verify timer_init return code            | FAIL |
'Error' does not contain 'Success'
------------------------------------------------------------------------------

It would be nice to have the full struct printed so we can see the values and the command in the console output, something like:

==============================================================================
tests_periph_timer                                                            
==============================================================================
tests_periph_timer.Periph Timer Base :: Verify basic functionality of the P...
==============================================================================
Timer Init Should Succeed :: Verify timer_init return code            | FAIL |
`Error' does not contain 'Success'
cmd: init_val(dev=0)
data: 5
msg: Initializing the periph timer
result: Error

------------------------------------------------------------------------------

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions