Set error queue in code