Skip to content

Commit

Permalink
[Upd] Changed log message
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Jan 23, 2024
1 parent ea59d33 commit 56e0289
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest-environment-jsdom.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", {
value: true,
});

// Using Jest 29, TextEncoder qnd TextDecoder do not have support, see https://github.com/jsdom/jsdom/issues/2524,
// Using Jest 29, TextEncoder and TextDecoder do not have support, see https://github.com/jsdom/jsdom/issues/2524,
// Solution was found here: https://github.com/jsdom/jsdom/issues/2524#issuecomment-1480930523
class JSDOMEnvironment extends $JSDOMEnvironment {
constructor(...args) {
Expand Down
10 changes: 8 additions & 2 deletions src/model/FormGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default class FormGenerator {
formQuestions,
};
} catch (e) {
console.error("Error in _constructFormQuestions:", e);
console.error(
"Error while constructing form questions from the provided structure:",
e
);
}

if (!form) {
Expand All @@ -57,7 +60,10 @@ export default class FormGenerator {
return [formProperties, form];
})
.catch((error) => {
console.error("Error in jsonld.flatten:", error);
console.error(
"Failed to flatten the JSON-LD structure. Expected to transform a nested JSON-LD document into a flattened array of node objects:",
error
);
return [formProperties, form];
});
}
Expand Down

0 comments on commit 56e0289

Please sign in to comment.