added error details to final error log message when moving message to error queue