Skip to content

Commit

Permalink
Package category: fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Oct 18, 2024
1 parent d41e090 commit dcbfe89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/commands/PackageCategoryCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object PackageCategoryCommand extends Command:

var previousVersionInfo: Option[ReleaseInfo] = None

override def run(args: Array[String]): Future[Unit] =
override def run(args: Array[String]): Future[Unit] = Future {
val version = args(1)
val repoDir = FileSystems.getDefault.getPath(args(2))
val mainRepoDir = FileSystems.getDefault.getPath(args(3))
Expand Down Expand Up @@ -65,6 +65,7 @@ object PackageCategoryCommand extends Command:
val dumpOutFile = outDir.resolve(f"dump.jelly").toFile
RDFDataMgr.write(new FileOutputStream(dumpOutFile), dataset, JellyFormat.JELLY_BIG_STRICT)
})
} flatMap { future => future }

private def packageCategory(mainRes: Resource, version: String, repoDir: Path, outDir: Path):
Resource =
Expand Down

0 comments on commit dcbfe89

Please sign in to comment.