Changed errors

Updated to accurately reflect new code