add mod name to js print() (#1677)

* add mod name to js print()

* add mod name to errors
This commit is contained in:
Anuken
2020-03-05 15:58:10 -05:00
committed by GitHub
parent 0534a4da45
commit 89a5c957fd
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ const log = function(context, obj){
var scriptName = "base.js"
var modName = "none"
const print = text => log(scriptName, text);
const print = text => log(modName + "/" + scriptName, text);
const extendContent = function(classType, name, params){
return new JavaAdapter(classType, params, name)