- added missing typedef for error type