Use decl_error in common runtime modules (#796)
* use decl_error in common runtime modules
* Apply suggestions from code review
Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
* use decl_error in common runtime modules
* Apply suggestions from code review
Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>