meaningful error messages from native functions