libimagnotes: use generate_error_module!() macro and reexport generated types
libimagnotes: use generate_error_module!() macro and reexport generated types

mario-kr/imag,mario-kr/imag,matthiasbeyer/imag,matthiasbeyer/imag