Permalink
Browse files

Update error code handling when creating walls

  • Loading branch information...
1 parent a683a02 commit 1e52a02f49ad34e3eaa063e634470cd8c4167ae3 @birtles birtles committed Mar 19, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 wall/public/wall-maker/js/create-wall.js
@@ -65,19 +65,19 @@ var CreateWallController =
createError: function(key, detail) {
// XXXl10n: hook this up to our localization
switch(key) {
- case 'duplicate-title':
+ case 'duplicate-name':
msg = "A wall with that title already exists.";
break;
case 'timeout':
msg = "接続できませんでした.";
break;
- case 'empty-title':
+ case 'empty-name':
// This can happen if for example the title is all whitespace.
// The browser will consider the form to be filled in but the server
// won't accept it.
- msg = "Title is empty";
+ msg = "Name is empty";
break;
case 'db-error':

0 comments on commit 1e52a02

Please sign in to comment.