Cleaned up Warning And Error Code
This commit is contained in:
@@ -28,7 +28,7 @@ class HScript extends Script {
|
||||
|
||||
try {
|
||||
if(Assets.exists(rawPath)) code = Assets.getText(rawPath);
|
||||
} catch(e) Logs.trace('Error while reading $path: ${Std.string(e)}', ERROR);
|
||||
} catch(e) Logs.error('Error while reading $path: ${Std.string(e)}');
|
||||
|
||||
parser = initParser();
|
||||
//folderlessPath = Path.directory(path);
|
||||
|
||||
@@ -153,7 +153,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
var arr = Assets.getText(path).split("________PACKSEP________");
|
||||
fromString(arr[1], arr[0]);
|
||||
case "lua":
|
||||
Logs.trace("Lua is not supported in this engine. Use HScript instead.", ERROR);
|
||||
Logs.error("Lua is not supported in this engine. Use HScript instead.");
|
||||
new DummyScript(path);
|
||||
default:
|
||||
new DummyScript(path);
|
||||
@@ -172,7 +172,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
case "hx" | "hscript" | "hsc" | "hxs":
|
||||
new HScript(path).loadFromString(code);
|
||||
case "lua":
|
||||
Logs.trace("Lua is not supported in this engine. Use HScript instead.", ERROR);
|
||||
Logs.error("Lua is not supported in this engine. Use HScript instead.");
|
||||
new DummyScript(path).loadFromString(code);
|
||||
default:
|
||||
new DummyScript(path).loadFromString(code);
|
||||
|
||||
Reference in New Issue
Block a user