Additional error reporting for macros

Signed-off-by: nixnodes <code@eth.si>