Exception: ThorSCMVersion::GitTagDuplicateError

Inherits:
GitError show all
Defined in:
lib/thor-scmversion/errors.rb

Instance Method Summary collapse

Methods inherited from SCMVersionError

status_code

Constructor Details

#initialize(tag) ⇒ GitTagDuplicateError

Returns a new instance of GitTagDuplicateError.



30
31
32
# File 'lib/thor-scmversion/errors.rb', line 30

def initialize(tag)
  @tag = tag
end

Instance Method Details

#to_sObject



34
35
36
# File 'lib/thor-scmversion/errors.rb', line 34

def to_s
  msg = "Tried to tag #{@tag}, but it already exists! Either build from the latest tag at this bump level or choose a lower order bump level."
end