more informative error for const() call for not defined constant