Wrong error returned to callback block & added reason

thanks for the lib