CC-2873: Soundcloud plugin doesn't log any error when there is an error

with soundcloud uploading through api controller

- Changed constant names
- added -1 constant
This commit is contained in:
James 2011-09-29 10:30:40 -04:00
parent 9cba129936
commit 1c652b6416
3 changed files with 5 additions and 4 deletions

View file

@ -37,5 +37,6 @@ define('UI_PLAYLIST_SESSNAME', 'PLAYLIST');
// Soundcloud contants
define('SC_PROGRESS', -2);
define('SC_ERROR', -2);
define('SOUNDCLOUD_NULL', -1);
define('SOUNDCLOUD_PROGRESS', -2);
define('SOUNDCLOUD_ERROR', -3);

View file

@ -413,7 +413,7 @@ class ApiController extends Zend_Controller_Action
$this->setSoundCloudErrorCode($code);
$this->setSoundCloudErrorMsg($msg);
// setting sc id to -3 which indicates error
$this->setSoundCloudFileId(SC_ERROR);
$this->setSoundCloudFileId(SOUNDCLOUD_ERROR);
if(!in_array($code, array(0, 100))) {
break;
}