Why to add JError as it's deprecated and the function didn't have it originally? (pull is against master)