mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Handled tag conflict from rename tag action
This commit is contained in:
@@ -8,8 +8,8 @@ use function sprintf;
|
||||
|
||||
class TagConflictException extends RuntimeException
|
||||
{
|
||||
public static function fromExistingTag(string $tag): self
|
||||
public static function fromExistingTag(string $oldName, string $newName): self
|
||||
{
|
||||
return new self(sprintf('Tag with name %s already exists', $tag));
|
||||
return new self(sprintf('You cannot rename tag %s to %s, because it already exists', $oldName, $newName));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user