Skip to content

Commit

Permalink
removed unused import and throw an exception on submodule error
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Aug 31, 2024
1 parent 9b6ce51 commit 984fa6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/haxelib/api/Installer.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package haxelib.api;

import haxelib.client.Cli;
import sys.FileSystem;
import sys.io.File;
import haxe.ds.Option;
Expand Down
2 changes: 2 additions & 0 deletions src/haxelib/api/Vcs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ enum VcsError {
CantCheckoutBranch(vcs:Vcs, branch:String, stderr:String);
CantCheckoutVersion(vcs:Vcs, version:String, stderr:String);
CommandFailed(vcs:Vcs, code:Int, stdout:String, stderr:String);
SubmoduleError(vcs:Vcs, repo:String, stderr:String);
}

/** Exception thrown when a vcs update is cancelled. **/
Expand Down Expand Up @@ -366,6 +367,7 @@ class Git extends Vcs {
if (ret.code != 0)
{
Sys.setCwd(oldCwd);
throw VcsError.SubmoduleError(this, url, ret.out);
}
}

Expand Down

0 comments on commit 984fa6b

Please sign in to comment.