Skip to content

Commit

Permalink
Error message slightly updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikailcolak committed Sep 29, 2020
1 parent 0fbdfcb commit af578c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public EntityModel<Company> toModel(Company company) {
linkTo(methodOn(CompanyController.class).all(Pageable.unpaged())).withRel("companies")
);
} catch (Exception ex) {
log.error("Unhandled exception occurred while assembling Employee model", ex);
log.error("An unexpected error occurred while assembling Company model", ex);
return EntityModel.of(company);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public EntityModel<Employee> toModel(Employee employee) {
linkTo(methodOn(EmployeeController.class).all(Pageable.unpaged())).withRel("employees")
);
} catch (Exception ex) {
log.error("Unhandled exception occurred while assembling Employee model", ex);
log.error("An unexpected error occurred while assembling Employee model", ex);
return EntityModel.of(employee);
}
}
Expand Down

0 comments on commit af578c5

Please sign in to comment.