Skip to content

Commit

Permalink
feat(MIG-166): updated the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
abulseed committed Jan 15, 2024
1 parent 7aecb40 commit 8dc76d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mdctl-axon-tools/lib/StudyDataTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class StudyDataTranslations {
}

if (!manifestData) {
throw Fault.create('mdctl.kManifestNotFound.error', { reason: 'There is no manifest set as parameter neither found in directory' })
throw Fault.create('mdctl.kManifestNotFound.error', { reason: 'There is no manifest set as a parameter, nor is one found in the directory."' })
}

if (manifestData.authenticationTaskTranslations && !_.has(manifestData, 'i18ns')) {
Expand Down
2 changes: 1 addition & 1 deletion packages/mdctl-import-adapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class ImportFileTreeAdapter extends EventEmitter {
manifestData = JSON.parse(fs.readFileSync(`${input}/${location[0]}`))
paths.push(KNOWN_FILES.manifest)
} else {
throw Fault.create('mdctl.kManifestNotFound.error', { reason: 'There is no manifest set as parameter neither found in directory' })
throw Fault.create('mdctl.kManifestNotFound.error', { reason: 'There is no manifest set as a parameter, nor is one found in the directory."' })
}
}
/* eslint-disable one-var */
Expand Down

0 comments on commit 8dc76d1

Please sign in to comment.