adapt-authoring-adaptframework 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -708,8 +708,10 @@ class AdaptFrameworkImport {
|
|
|
708
708
|
*/
|
|
709
709
|
async importCourseData () {
|
|
710
710
|
const formatError = e => {
|
|
711
|
-
if (e?.data?.schemaName)
|
|
712
|
-
|
|
711
|
+
if (e?.data?.schemaName) {
|
|
712
|
+
return `${e.data.schemaName}${e.data.data?._id ? ` (${e.data.data._id})` : ''}: ${e.data.errors ?? e.message}`
|
|
713
|
+
}
|
|
714
|
+
return e?.toString() ?? String(e)
|
|
713
715
|
}
|
|
714
716
|
/**
|
|
715
717
|
* Note: the execution order is important here
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-adaptframework",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"description": "Adapt framework integration for the Adapt authoring tool",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-adaptframework",
|
|
6
6
|
"license": "GPL-3.0",
|