This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new df21b33c26 #2661 Added error message when self registration fails
(#2873)
df21b33c26 is described below
commit df21b33c26877fa0d922c6779eee18b614ff76ac
Author: Isaak Krut <[email protected]>
AuthorDate: Mon May 20 15:21:08 2024 -0400
#2661 Added error message when self registration fails (#2873)
* #2661 added error message when self registration fails
* #2661 format fix
* #2661 moved error handling to backend
* #2661 moved error handling to backend
* #2661 license fix
* #2661 updated error handling
---
.../main/java/org/apache/streampipes/rest/impl/Authentication.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
index c075a6b079..cfbc17722f 100644
---
a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
+++
b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
@@ -109,6 +109,10 @@ public class Authentication extends AbstractRestResource {
throw new SpMessageException(
HttpStatus.BAD_REQUEST,
Notifications.error("This email address already exists. Please
choose another address."));
+ } catch (IllegalArgumentException e) {
+ throw new SpMessageException(
+ HttpStatus.INTERNAL_SERVER_ERROR,
+ Notifications.error("User registration failed. Please report this to
your admin."));
}
}