Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Display a warning if an input directory does not exist. #242

Merged
merged 4 commits into from
Apr 17, 2021

Conversation

Lukas-Stuehrk
Copy link
Member

@Lukas-Stuehrk Lukas-Stuehrk commented Apr 3, 2021

A small improvement, so users can troubleshoot problems easier.

Before, when you accidentally misspelled the input path or provided for any other reason a path to directory which does not exist, swift-doc only displayed a warning that no symbols where found. This could lead new users into a very wrong direction.

With this change, there's an additional warning that the given directory does not exist. If an input path exists but is not a directory, a helpful warning is displayed as well, as swift-doc only works with paths to directories and not direct paths to Swift source files.

@mattt mattt added this to the 1.0.0-beta.6 milestone Apr 17, 2021
Copy link
Contributor

@mattt mattt left a comment

Choose a reason for hiding this comment

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

This is an excellent and thoughtful change. Great work, @Lukas-Stuehrk! Merging this in now.

@mattt mattt merged commit 75108dd into SwiftDocOrg:master Apr 17, 2021
@Lukas-Stuehrk Lukas-Stuehrk deleted the UserWarnings branch April 17, 2021 20:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants