diff --git a/compiler/src/ark_utils.ts b/compiler/src/ark_utils.ts index a9f1f4eaef81a3e59a74ea4015591c2644c7902e..52bba5f8283c7a51b5caa02468972c8eb80017fd 100644 --- a/compiler/src/ark_utils.ts +++ b/compiler/src/ark_utils.ts @@ -131,7 +131,7 @@ export function getNormalizedOhmUrlByFilepath(filePath: string, projectConfig: O `Failed to get a resolved OhmUrl for "${filePath}" imported by "${importerFile}".`, '', [`Check whether the "${pkgName}" module which ${filePath} belongs to is correctly configured.`, - 'Check the corresponding file name is correct(including case-sensitivity).'] + `Check if the corresponding file name "${filePath}" is correct(including case-sensitivity).`] ); logger.printError(errInfo); return filePath; @@ -231,7 +231,7 @@ function processPackageDir(params: Object): string { `Failed to get a resolved OhmUrl for "${originalFilePath}" imported by "${importerFile}".`, '', [`Check whether the module which ${originalFilePath} belongs to is correctly configured.`, - 'Check the corresponding file name is correct(including case-sensitivity).'] + `Check if the corresponding file name "${originalFilePath}" is correct(including case-sensitivity).`] ); logger.printError(errInfo); return originalFilePath; @@ -270,7 +270,7 @@ function processPackageDir(params: Object): string { `Failed to get a resolved OhmUrl for "${originalFilePath}" imported by "${importerFile}".`, '', [`Check whether the module which ${originalFilePath} belongs to is correctly configured.`, - 'Check the corresponding file name is correct(including case-sensitivity).'] + `Check if the corresponding file name "${originalFilePath}" is correct(including case-sensitivity).`] ); logger.printError(errInfo); return originalFilePath; diff --git a/compiler/test/ark_compiler_ut/module/ohmUrl/ohmUrl.test.ts b/compiler/test/ark_compiler_ut/module/ohmUrl/ohmUrl.test.ts index 2e6514a7e16345c4338000866b048291181e1ba4..fb70f5f0654508bf6d3a613ccc9b41bffab32e4e 100644 --- a/compiler/test/ark_compiler_ut/module/ohmUrl/ohmUrl.test.ts +++ b/compiler/test/ark_compiler_ut/module/ohmUrl/ohmUrl.test.ts @@ -202,7 +202,7 @@ mocha.describe('generate ohmUrl', function () { 'Failed to get a resolved OhmUrl for "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" imported by "importTest.ts".', '', ['Check whether the module which /testProjectRootPath/entry/oh_modules/json5/dist/index.js belongs to is correctly configured.', - 'Check the corresponding file name is correct(including case-sensitivity).'] + 'Check if the corresponding file name "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" is correct(including case-sensitivity).'] ); const logger = CommonLogger.getInstance(this.rollup); const stub = sinon.stub(logger.getLoggerFromErrorCode(errInfo.code), 'printError'); @@ -224,7 +224,7 @@ mocha.describe('generate ohmUrl', function () { 'Failed to get a resolved OhmUrl for "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" imported by "importTest.ts".', '', ['Check whether the module which /testProjectRootPath/entry/oh_modules/json5/dist/index.js belongs to is correctly configured.', - 'Check the corresponding file name is correct(including case-sensitivity).'] + 'Check if the corresponding file name "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" is correct(including case-sensitivity).'] ); CommonLogger.destroyInstance(); const getHvigorConsoleLogger = this.rollup.share.getHvigorConsoleLogger; @@ -252,7 +252,7 @@ mocha.describe('generate ohmUrl', function () { '"/testProjectRootPath/entry/oh_modules/json5/dist/index.js" imported by "importTest.ts".', '', ['Check whether the module which /testProjectRootPath/entry/oh_modules/json5/dist/index.js belongs to is correctly configured.', - 'Check the corresponding file name is correct(including case-sensitivity).'] + 'Check if the corresponding file name "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" is correct(including case-sensitivity).'] ); const logger = CommonLogger.getInstance(this.rollup); const stub = sinon.stub(logger.getLoggerFromErrorCode(errInfo.code), 'printError'); @@ -276,7 +276,7 @@ mocha.describe('generate ohmUrl', function () { '"/testProjectRootPath/entry/oh_modules/json5/dist/index.js" imported by "importTest.ts".', '', ['Check whether the module which /testProjectRootPath/entry/oh_modules/json5/dist/index.js belongs to is correctly configured.', - 'Check the corresponding file name is correct(including case-sensitivity).'] + 'Check if the corresponding file name "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" is correct(including case-sensitivity).'] ); CommonLogger.destroyInstance(); const getHvigorConsoleLogger = this.rollup.share.getHvigorConsoleLogger; @@ -983,7 +983,7 @@ mocha.describe('generate ohmUrl', function () { 'Failed to get a resolved OhmUrl for "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" imported by "importTest.ts".', '', ['Check whether the "json5" module which /testProjectRootPath/entry/oh_modules/json5/dist/index.js belongs to is correctly configured.', - 'Check the corresponding file name is correct(including case-sensitivity).'] + 'Check if the corresponding file name "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" is correct(including case-sensitivity).'] ); const logger = CommonLogger.getInstance(this.rollup); const stub = sinon.stub(logger.getLoggerFromErrorCode(errInfo.code), 'printError'); @@ -1015,7 +1015,7 @@ mocha.describe('generate ohmUrl', function () { 'Failed to get a resolved OhmUrl for "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" imported by "importTest.ts".', '', ['Check whether the "json5" module which /testProjectRootPath/entry/oh_modules/json5/dist/index.js belongs to is correctly configured.', - 'Check the corresponding file name is correct(including case-sensitivity).'] + 'Check if the corresponding file name "/testProjectRootPath/entry/oh_modules/json5/dist/index.js" is correct(including case-sensitivity).'] ); CommonLogger.destroyInstance(); const getHvigorConsoleLogger = this.rollup.share.getHvigorConsoleLogger;