Pass custom error message for failed local require