diff --git a/includes/class-freemius.php b/includes/class-freemius.php index 19c08efa8..179117a6c 100755 --- a/includes/class-freemius.php +++ b/includes/class-freemius.php @@ -3251,10 +3251,24 @@ private function parse_settings( &$plugin_info ) { } if ( false === $id ) { - throw new Freemius_Exception( 'Plugin id parameter is not set.' ); + throw new Freemius_Exception( array( + 'error' => array( + 'type' => 'ParameterNotSet', + 'message' => 'Plugin id parameter is not set.', + 'code' => 'plugin_id_not_set', + 'http' => 500, + ) + ) ); } if ( false === $public_key ) { - throw new Freemius_Exception( 'Plugin public_key parameter is not set.' ); + throw new Freemius_Exception( array( + 'error' => array( + 'type' => 'ParameterNotSet', + 'message' => 'Plugin public_key parameter is not set.', + 'code' => 'plugin_public_key_not_set', + 'http' => 500, + ) + ) ); } $plugin = ( $this->_plugin instanceof FS_Plugin ) ?