Skip to content
Snippets Groups Projects
Commit 1a86bc54 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

consistent error types

parent 82268ccc
No related branches found
No related tags found
No related merge requests found
......@@ -314,7 +314,7 @@ sub req_generate_token {
}
unless ($self->{in}->{email_address}) {
push @{ $self->{out}->{errors} }, "email_address";
push @{ $self->{out}->{errors} }, "missing_email_address";
$self->{logger}->error("Missing parameter email_address");
return undef;
}
......@@ -440,8 +440,7 @@ sub req_validate_token {
}
unless ($self->{in}->{authentication_token}) {
push @{ $self->{out}->{errors} },
"missing_authentication_token";
push @{ $self->{out}->{errors} }, "missing_authentication_token";
$self->{logger}->error("Missing parameter authentication_token");
return undef;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment