better error message on terms repo
This commit is contained in:
parent
0672a0b883
commit
3aefcf9e42
|
@ -160,7 +160,7 @@ class Terms extends Repository {
|
|||
}
|
||||
|
||||
if ( is_wp_error($term_saved) ) {
|
||||
throw new \Exception( 'Error adding term: ' . $term_saved->get_error_message() );
|
||||
throw new \Exception( 'Error adding term ' . $term->get_name() . ' - ' . $term_saved->get_error_message() );
|
||||
}
|
||||
|
||||
// Now run through properties stored as postmeta
|
||||
|
|
Loading…
Reference in New Issue