More informative error message would be helpful documentation here.