This is wrong IMO. The `g_return_*` functions are for programmer errors. Here, this is a runtime error.
Also, I do not see any benefit of removing the error message.