Skip to content

Improve LenelS2 error handling & validation - #28

Merged
ShobuPrime merged 2 commits into
mainfrom
anthony-dardano
Oct 2, 2025
Merged

Improve LenelS2 error handling & validation#28
ShobuPrime merged 2 commits into
mainfrom
anthony-dardano

Conversation

@ShobuPrime

Copy link
Copy Markdown
Contributor

{LenelS2}

  • Split credential validation in Login() to return distinct error messages for missing S2_USERNAME vs S2_PASSWORD environment variables
  • Add explicit error handling for Login() failures in NewClient() with fatal log on authentication errors
  • Add nil session response validation with descriptive fatal error
  • Add empty session ID check to catch incomplete authentication responses
  • Remove unused variable assignment in Logout() method

{CLAUDE.md}

  • Update commit messaging standards

{LenelS2}
- Split credential validation in `Login()` to return distinct error messages for missing `S2_USERNAME` vs `S2_PASSWORD` environment variables
- Add explicit error handling for `Login()` failures in `NewClient()` with fatal log on authentication errors
- Add nil session response validation with descriptive fatal error
- Add empty session ID check to catch incomplete authentication responses
- Remove unused variable assignment in `Logout()` method

{CLAUDE.md}
- Update commit messaging standards

@HernandezJustin HernandezJustin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ShobuPrime
ShobuPrime merged commit 47589c7 into main Oct 2, 2025
2 checks passed
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.

2 participants