Method: CreateGithubRelease::CommandLine::Validations::ValidateChangelogPath#error

Defined in:
lib/create_github_release/command_line/validations.rb

#errorString+

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Called when valid? is false to return the error messages

Returns:

  • (String, Array<String>)


283
284
285
286
287
288
289
# File 'lib/create_github_release/command_line/validations.rb', line 283

def error
  if valid_path?(options.changelog_path)
    "The change log path '#{options.changelog_path}' is not a regular file"
  else
    "The change log path '#{options.changelog_path}' is not a valid path"
  end
end