diff --git a/Source/Source.API.php b/Source/Source.API.php index 8b57b88..60c6f88 100644 --- a/Source/Source.API.php +++ b/Source/Source.API.php @@ -578,7 +578,12 @@ */ function save() { if ( is_blank( $this->type ) || is_blank( $this->name ) ) { - trigger_error( ERROR_GENERIC, ERROR ); + if( is_blank( $this->type ) ) { + error_parameters( plugin_lang_get( 'type' ) ); + } else { + error_parameters( plugin_lang_get( 'name' ) ); + } + trigger_error( ERROR_EMPTY_FIELD, ERROR ); } $t_repo_table = plugin_table( 'repository', 'Source' );