Add better handling of undefined entry points.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "core"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -18,5 +18,7 @@ pub enum Error {
|
||||
#[from]
|
||||
TomlSerialize(toml::ser::Error),
|
||||
|
||||
UndefinedEntryPoint,
|
||||
|
||||
UnknownPackage,
|
||||
}
|
||||
|
||||
@@ -158,6 +158,10 @@ impl WorkspaceHandler {
|
||||
.entry_point();
|
||||
}
|
||||
|
||||
if entry_point.file_name().is_none() {
|
||||
return Err(Error::UndefinedEntryPoint);
|
||||
}
|
||||
|
||||
java::runtime::JVMBuilder::new(Self::DIR_TARGET)
|
||||
.assertions(assertions)
|
||||
.monitor(true)
|
||||
|
||||
Reference in New Issue
Block a user