minifixes

This commit is contained in:
Daniella / Tove 2024-08-30 14:01:43 +02:00
parent 1fd2647688
commit f9a7b4d2de
2 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,9 @@ fn main() {
}
println!("Embedding source...");
}
else {
builder.set_name(file[..file.rfind('.').unwrap_or(file.len())].to_owned());
}
builder.add_source(file.to_owned(), data.to_owned());
if build_only {
println!("Preparing rust code...");

View file

@ -472,8 +472,7 @@ func call-main-on-file { | with file ;
"@" file concat import
update-types
argv main exit
}
{ with err ;
} { with err ;
err:message dup null eq if {
pop
"Uncaught error."