prosody fixed the error type

prosody fixed the wrong error type