soixantecircuits / cropcrop

A tool for cropping video easily online
0 stars 1 forks source link

The done promise should be use with fail deffered #88

Open gabrielstuff opened 11 years ago

gabrielstuff commented 11 years ago

http://api.jquery.com/deferred.fail/

data:{
 error: true,
 msg:["blabla", "aoskao"]
}

when it is ok :

data:{
 error: false,
 msg:["blabla, aoskao"],
 content:{}
}
saschmitt commented 11 years ago

Added .fail()... Actually only work when PHP has error, but not when python exec script fail.

gabrielstuff commented 11 years ago

if python fail, then python script should return an error, and php should get it :)