Skip to content

Conversation

@sergey-borovkov
Copy link
Contributor

What does this PR do?

Improves message on missing authentication file.

GitHub issue or Phabricator ticket number?

#270

How has this been tested?

By running CLI without authentication file.

@vpetersson vpetersson requested a review from Copilot December 12, 2025 21:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the user experience when authentication files are missing by replacing generic error messages with more helpful, actionable feedback. Instead of a cryptic "Failed to load authentication" panic, users now see clear guidance to run screenly login.

Key Changes:

  • Introduced helper functions to provide context-aware authentication error messages
  • Replaced panic-on-error pattern with graceful error handling and user-friendly messages
  • Added test coverage for the new error message formatting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sergey-borovkov sergey-borovkov merged commit d200c21 into master Jan 12, 2026
11 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