lib: improved error message reporting in vevent.cc