Skip to content

Commit

Permalink
Update Utils::shortcode_available collision error to cite --force opt…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
gavincarr committed Oct 12, 2014
1 parent 4ec905a commit 11e0792
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Shrtn/Utils.pm
Expand Up @@ -32,10 +32,11 @@ sub shortcode_available
my $db_url = $db->{$code};
my $display = $base_url ? "$base_url/$code" : $code;
if ($url and $db_url eq $url) {
die "URL is already in db with that code: $display => $url\n";
die "Code '$code' already exists in db pointing to that URL => $url\n";
}
else {
die "Code $code is already used in db: $display => $db_url\n";
warn "Code '$code' already exists in db => $db_url\n";
die "(use --force option to force the '$code' URL to be updated)\n";
}
}

Expand Down

0 comments on commit 11e0792

Please sign in to comment.