More robust onError message (see also issue #50)