Skip to content

Commit

Permalink
Dev: Show error exception when activate
Browse files Browse the repository at this point in the history
Dev: We don't already have it ?????
Dev: Only with debug set : maybe always ?
  • Loading branch information
Shnoulle committed Aug 29, 2015
1 parent 5dea80a commit fab00d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion application/helpers/admin/activate_helper.php
Expand Up @@ -391,7 +391,14 @@ function activateSurvey($iSurveyID, $simulate = false)
}
catch (CDbException $e)
{
return array('error'=>'surveytablecreation');
if(App()->getConfig('debug'))
{
return array('error'=>$e->getMessage());
}
else
{
return array('error'=>'surveytablecreation');
}
}
try
{
Expand Down

0 comments on commit fab00d4

Please sign in to comment.