Make error messages more descriptive

This commit is contained in:
Rohan Mitchell
2013-08-13 14:41:20 +10:00
parent 47f6a5fbbf
commit 13df3b098b

View File

@@ -203,7 +203,7 @@ angular.module('order_cycle', ['ngResource'])
if data['success']
$window.location = '/admin/order_cycles'
else
console.log('fail')
console.log('Failed to create order cycle')
update: ->
oc = new OrderCycle({order_cycle: this.dataForSubmit()})
@@ -211,7 +211,7 @@ angular.module('order_cycle', ['ngResource'])
if data['success']
$window.location = '/admin/order_cycles'
else
console.log('fail')
console.log('Failed to update order cycle')
dataForSubmit: ->
data = angular.extend({}, this.order_cycle)