Improve the php error message to get the real error message