Improved: error message for router component