Added error code to error message on init