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> <modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId> <groupId>pw.yumc</groupId>
<artifactId>MiaoScript</artifactId> <artifactId>MiaoScript</artifactId>
<version>0.11.1</version> <version>0.11.2</version>
<developers> <developers>
<developer> <developer>
<id>502647092</id> <id>502647092</id>

View File

@ -52,7 +52,7 @@
// @ts-ignore // @ts-ignore
var URL = Java.type('java.net.URL') var URL = Java.type('java.net.URL')
// @ts-ignore // @ts-ignore
var Thread = Java.type('java.net.URL') var Thread = Java.type('java.lang.Thread')
// @ts-ignore // @ts-ignore
var FutureTask = Java.type('java.util.concurrent.FutureTask') var FutureTask = Java.type('java.util.concurrent.FutureTask')
// @ts-ignore // @ts-ignore
@ -403,7 +403,7 @@
return _require(download(name), path, optional) return _require(download(name), path, optional)
} catch (ex) { } catch (ex) {
notFoundModules[name] = true 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) setCacheModule(file, optional)