fix: require error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2021-03-26 18:51:54 +08:00
parent 48306b64c4
commit f8ba885b8c
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>MiaoScript</artifactId>
<version>0.11.1</version>
<version>0.11.2</version>
<developers>
<developer>
<id>502647092</id>

View File

@ -52,7 +52,7 @@
// @ts-ignore
var URL = Java.type('java.net.URL')
// @ts-ignore
var Thread = Java.type('java.net.URL')
var Thread = Java.type('java.lang.Thread')
// @ts-ignore
var FutureTask = Java.type('java.util.concurrent.FutureTask')
// @ts-ignore
@ -403,7 +403,7 @@
return _require(download(name), path, optional)
} catch (ex) {
notFoundModules[name] = true
throw new FileNotFoundException("Can't found module " + name + ' in directory ' + path + ' ERROR: ' + ex)
throw new FileNotFoundException("Can't found module " + name + ' in directory ' + path + ' ERROR: ' + ex, ex)
}
}
setCacheModule(file, optional)