send error to frontend

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>