From 178345ab12b09f4ec7eb3c262a27355104ffe2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 14 Mar 2016 11:18:32 +0100 Subject: [PATCH] Fixed typo --- lib/cartodb/controllers/named_maps_admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/controllers/named_maps_admin.js b/lib/cartodb/controllers/named_maps_admin.js index c2d82f8c..3d201049 100644 --- a/lib/cartodb/controllers/named_maps_admin.js +++ b/lib/cartodb/controllers/named_maps_admin.js @@ -72,8 +72,8 @@ NamedMapsAdminController.prototype.update = function(req, res) { }, function updateTemplate(err, authenticated) { assert.ifError(err); - ifUnauthenticated(authenticated, 'Only authenticated users can get template maps'); - ifInvalidContentType(req, 'template POST data must be of type application/json'); + ifUnauthenticated(authenticated, 'Only authenticated user can update templated maps'); + ifInvalidContentType(req, 'template PUT data must be of type application/json'); template = req.body; tpl_id = templateName(req.params.template_id);