Applied patch from Martin Gunther to add some hints to error message