fixed error output to correctly display email validation error
This commit is contained in:
parent
98a7d4dcdf
commit
85a11c8b39
@ -171,7 +171,9 @@ export class HttpService {
|
|||||||
*/
|
*/
|
||||||
private processDetailResponse(response: DetailResponse): string {
|
private processDetailResponse(response: DetailResponse): string {
|
||||||
let message: string;
|
let message: string;
|
||||||
if (response.detail instanceof Array) {
|
if (response instanceof Array) {
|
||||||
|
message = response.join(' ');
|
||||||
|
} else if (response.detail instanceof Array) {
|
||||||
message = response.detail.join(' ');
|
message = response.detail.join(' ');
|
||||||
} else {
|
} else {
|
||||||
message = response.detail;
|
message = response.detail;
|
||||||
|
Loading…
Reference in New Issue
Block a user