Showing error message when referencing undefined error values