Skip to content

Commit

Permalink
Replace trigger_error calls in bug_actiongroup.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhicks committed Feb 25, 2012
1 parent 2d45fbe commit d16582e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/bug_actiongroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
* @uses version_api.php
*/

use MantisBT\Exception\UnspecifiedException;

/**
* MantisBT Core API's
*/
Expand Down Expand Up @@ -308,7 +310,7 @@

case 'CUSTOM':
if ( 0 === $f_custom_field_id ) {
trigger_error( ERROR_GENERIC, ERROR );
throw new UnspecifiedException();
}

/** @todo we need to issue a helper_call_custom_function( 'issue_update_validate', array( $t_bug_id, $t_bug_data, $f_bugnote_text ) ); */
Expand All @@ -319,7 +321,7 @@
break;

default:
trigger_error( ERROR_GENERIC, ERROR );
throw new UnspecifiedException();
}

// Bug Action Event
Expand Down

0 comments on commit d16582e

Please sign in to comment.