Added error message when dependency code is not 0