Skip to content

Commit 3779ff7

Browse files
committed
Handle Length case. Add default case and whine loudly.
1 parent 3d3680e commit 3779ff7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/skins/vector/views/templates/Register.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ module.exports = React.createClass({
173173
case this.FieldErrors.InUse:
174174
strings.push(keys[i]+" is already taken");
175175
break;
176+
case this.FieldErrors.Length:
177+
strings.push(keys[i] + " is not long enough.");
178+
break;
179+
default:
180+
console.error("Unhandled FieldError: %s", bad[keys[i]]);
181+
break;
176182
}
177183
}
178184
var errtxt = strings.join(', ');

0 commit comments

Comments
 (0)