improve confusing error msg noticed by Julien