Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MISC: add logger error when object not found #4147

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

SMoraisAnsys
Copy link
Collaborator

@SMoraisAnsys SMoraisAnsys commented Jan 29, 2024

Following user feedback (#4001) this PR adds an extra error log to clarify the fact that some calls might not work as expected since some objects don't exist (or at least are not found).

Closes #4001

Following user feedback (#4001) we add an extra error log to clarify
the fact that some calls might not work as expected since some objects
don't exist (or at least are not found)
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3a6c2aa) 31.12% compared to head (caa8421) 81.93%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4147       +/-   ##
===========================================
+ Coverage   31.12%   81.93%   +50.80%     
===========================================
  Files         182      182               
  Lines       63851    63852        +1     
===========================================
+ Hits        19875    52315    +32440     
+ Misses      43976    11537    -32439     

Copy link
Member

@Samuelopez-ansys Samuelopez-ansys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Samuelopez-ansys
Copy link
Member

@SMoraisAnsys Maybe we should add a test

@SMoraisAnsys
Copy link
Collaborator Author

@SMoraisAnsys Maybe we should add a test

I added a test over the log message content. Is that what you wanted or had you something else in mind ?

MaxJPRey
MaxJPRey previously approved these changes Jan 29, 2024
Copy link
Collaborator

@MaxJPRey MaxJPRey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Co-authored-by: Maxime Rey <87315832+MaxJPRey@users.noreply.github.com>
Copy link
Member

@Samuelopez-ansys Samuelopez-ansys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SMoraisAnsys SMoraisAnsys merged commit 3259f8c into main Jan 30, 2024
15 checks passed
@SMoraisAnsys SMoraisAnsys deleted the refact/add_log_no_object branch January 30, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug located in ...get_object_material_properties
3 participants