Skip to content

Commit

Permalink
Fix typo on ProjectErrorKey.UNKNOWN_PROJECT (#7283)
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos authored Aug 24, 2023
1 parent 4407d8a commit c3f4078
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tech.jhipster.lite.shared.error.domain.ErrorKey;

enum ProjectErrorKey implements ErrorKey {
UNKOWN_PROJECT("unknown-project-folder");
UNKNOWN_PROJECT("unknown-project-folder");

private final String key;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
public class UnknownProjectException extends GeneratorException {

public UnknownProjectException() {
super(badRequest(ProjectErrorKey.UNKOWN_PROJECT).message("A user tried to download an unknown project"));
super(badRequest(ProjectErrorKey.UNKNOWN_PROJECT).message("A user tried to download an unknown project"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ void shouldGetExceptionInformation() {

assertThat(exception.getMessage()).isEqualTo("A user tried to download an unknown project");
assertThat(exception.status()).isEqualTo(ErrorStatus.BAD_REQUEST);
assertThat(exception.key()).isEqualTo(ProjectErrorKey.UNKOWN_PROJECT);
assertThat(exception.key()).isEqualTo(ProjectErrorKey.UNKNOWN_PROJECT);
}
}

0 comments on commit c3f4078

Please sign in to comment.