fix: require error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
48306b64c4
commit
f8ba885b8c
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user