migration: fix bad string passed to error_report()