outut a single error message, instead of multiple warnings

fixes #114