From bf44ca20f2f1f987b372771d5f8f7e135c954fd3 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak <p.jaszkow@gmail.com>
Date: Wed, 1 Feb 2017 10:36:15 -0700
Subject: [PATCH] Better deprecation warning for old language route

---
 src/routes/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/routes/index.js b/src/routes/index.js
index 158774b624..13633f2bc8 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -152,7 +152,7 @@ module.exports = function (app, middleware, hotswapIds) {
 	// DEPRECATED
 	app.use(relativePath + '/api/language', function (req, res) {
 		winston.warn('[deprecated] Accessing language files from `/api/language` is deprecated. ' + 
-			'Use `/assets/language/[langCode]/[namespace].json` for prefetch paths.');
+			'Use `/assets/language' + req.path + '.json` for prefetch paths.');
 		res.redirect(relativePath + '/assets/language' + req.path + '.json?' + meta.config['cache-buster']);
 	});