!!! this is the default behavior of onerror anyway but you must use a callback here