File tree 5 files changed +20
-7
lines changed
common/changes/@educorvi/rita
rita-core/src/logicElements
5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 7
7
push :
8
8
branches : ['main', 'develop']
9
9
pull_request :
10
- branches : ['main', ' develop']
10
+ branches : ['develop']
11
11
12
12
jobs :
13
13
buildAndTest :
Original file line number Diff line number Diff line change 1
1
<component name =" ProjectRunConfigurationManager" >
2
2
<configuration default =" false" name =" Rita-Core" type =" JavaScriptTestRunnerJest" >
3
3
<config-file value =" $PROJECT_DIR$/rita-core/jest.config.js" />
4
- <node-interpreter value =" $USER_HOME$/.nvm/versions/node/v18.12.1/bin/node" />
5
- <node-options value =" " />
4
+ <node-interpreter value =" project" />
6
5
<jest-package value =" $PROJECT_DIR$/rita-core/node_modules/jest" />
7
6
<working-dir value =" $PROJECT_DIR$/rita-core" />
8
7
<jest-options value =" --maxWorkers=8" />
Original file line number Diff line number Diff line change 1
1
<component name =" ProjectRunConfigurationManager" >
2
2
<configuration default =" false" name =" Rita-SMT" type =" JavaScriptTestRunnerJest" >
3
3
<config-file value =" $PROJECT_DIR$/rita-smt/main/jest.config.js" />
4
- <node-interpreter value =" $USER_HOME$/.nvm/versions/node/v18.12.1/bin/node" />
5
- <node-options value =" " />
4
+ <node-interpreter value =" project" />
6
5
<jest-package value =" $PROJECT_DIR$/persistent-rita/node_modules/jest" />
7
6
<working-dir value =" $PROJECT_DIR$/rita-smt/main" />
8
7
<envs />
Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @educorvi/rita" ,
5
+ "comment" : " Improve error message for invalid type in data" ,
6
+ "type" : " patch"
7
+ }
8
+ ],
9
+ "packageName" : " @educorvi/rita"
10
+ }
Original file line number Diff line number Diff line change @@ -56,12 +56,17 @@ export class Atom extends Formula {
56
56
const a = path . split ( '.' ) ;
57
57
for ( let i = 0 , n = a . length ; i < n ; ++ i ) {
58
58
const k = a [ i ] ;
59
- if ( typeof object === 'undefined ') {
59
+ if ( typeof object !== 'object ') {
60
60
if ( defaultVal !== undefined ) {
61
61
return defaultVal ;
62
62
} else {
63
63
throw new UndefinedPathError (
64
- 'Undefinded path in data: ' + path ,
64
+ 'Invalid path in data: ' +
65
+ path +
66
+ ' is of invalid type ' +
67
+ typeof object +
68
+ ' with value ' +
69
+ object ,
65
70
context
66
71
) ;
67
72
}
You can’t perform that action at this time.
0 commit comments