Skip to content

Commit 2311122

Browse files
committed
Improve error message.
1 parent b76745b commit 2311122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inc/rest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,11 @@ public function register_service( WP_REST_Request $request ) {
371371
200
372372
);
373373
}
374+
374375
return new WP_REST_Response(
375376
[
376377
'data' => null,
377-
'message' => __( 'Error creating account.', 'optimole-wp' ),
378+
'message' => __( 'Error creating account.', 'optimole-wp' ) . ' ' . $user->get_error_message(),
378379
'code' => 'error',
379380
],
380381
200

0 commit comments

Comments
 (0)