changed error reporting function interface
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
|
||||
vars, err = import("imported.noja");
|
||||
if vars == none: {
|
||||
print("Import failed!! (", err, ")\n");
|
||||
return none;
|
||||
}
|
||||
vars = import("imported.noja");
|
||||
|
||||
me = {name: vars.myName, age: vars.myAge};
|
||||
|
||||
print(me, "\n");
|
||||
print(me, "\n");
|
||||
|
||||
Reference in New Issue
Block a user