Implemented error message for illegal reference list