forked from Cutieguwu/raven
Add better handling of undefined entry points.
This commit is contained in:
@@ -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