improving migration error logging