fixed error message for promise
should only include dist dir for releases