Skip to content

Commit

Permalink
add extra info to the throw
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Aug 26, 2024
1 parent ebfb98d commit ea5a1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haxelib/api/Repository.hx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class Repository {

final current = getCurrentFileContent(name);
if (getDevPath(name) == null && current == version)
throw 'Cannot remove current version of library $name';
throw 'Cannot remove current version of library $name, it\'s set as the current version';

try {
confirmRemovalAgainstDev(name, versionPath);
Expand Down

0 comments on commit ea5a1eb

Please sign in to comment.