From 228e19462a53bbf468d8002757e4d9b624488739 Mon Sep 17 00:00:00 2001 From: chen ruixiang Date: Wed, 19 Oct 2022 15:03:12 +0800 Subject: [PATCH] fix: more information for runtime error --- cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/index.js b/cli/index.js index 6a2e382dad..75fc082434 100644 --- a/cli/index.js +++ b/cli/index.js @@ -639,7 +639,7 @@ export async function main(argv, options) { if (runtimeText == null) { runtimePath = runtimeName; runtimeText = await readFile(runtimePath + extension, baseDir); - if (runtimeText == null) return prepareResult(Error(`Runtime '${runtimeName}' not found.`)); + if (runtimeText == null) return prepareResult(Error(`Runtime '${path.resolve(baseDir, runtimePath + extension)}' is not found.`)); } else { runtimePath = `~lib/${runtimePath}`; }