rename up to errordef and warn error def
Merge pull request #48 from piti118/rename_up_to_error_def

rename up to errordef and warn error def