should be:
var error = {};