Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard
erp5
Commits
ecc0a879
Commit
ecc0a879
authored
Jun 15, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_gadget_interface_validator] Stop surcharging error message
parent
8a07c6e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
30 deletions
+3
-30
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js
...r/PathTemplateItem/web_page_module/gadget_interface_js.js
+1
-28
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml
.../PathTemplateItem/web_page_module/gadget_interface_js.xml
+2
-2
No files found.
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js
View file @
ecc0a879
...
@@ -43,16 +43,6 @@
...
@@ -43,16 +43,6 @@
return
gadget_list
;
return
gadget_list
;
}
}
function
generateErrorMessage
(
error
)
{
var
error_message
=
''
;
error_message
=
error_message
+
error
.
toString
()
+
(
error
.
message
!==
undefined
?
error
.
message
:
''
)
+
(
error
.
status
?
error
.
status
.
toString
()
+
'
'
:
''
)
+
(
error
.
statusText
!==
undefined
?
error
.
statusText
:
''
);
return
error_message
;
}
function
getInterfaceListFromURL
(
gadget_url
)
{
function
getInterfaceListFromURL
(
gadget_url
)
{
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
...
@@ -82,10 +72,6 @@
...
@@ -82,10 +72,6 @@
}
}
}
}
return
interface_list
;
return
interface_list
;
},
function
(
error
)
{
var
message
=
"
Error with loading the gadget data.
\n
"
;
error
.
message
=
message
+
generateErrorMessage
(
error
);
throw
error
;
});
});
}
}
...
@@ -146,10 +132,6 @@
...
@@ -146,10 +132,6 @@
}
}
next_element
=
next_element
.
nextElementSibling
;
next_element
=
next_element
.
nextElementSibling
;
}
}
},
function
(
error
)
{
var
message
=
"
Error with loading the interface data.
\n
"
;
error
.
message
=
message
+
generateErrorMessage
(
error
);
throw
error
;
});
});
}
}
...
@@ -278,11 +260,6 @@
...
@@ -278,11 +260,6 @@
var
interface_gadget
=
this
;
var
interface_gadget
=
this
;
return
interface_gadget
.
declareGadget
(
gadget_url
,
{
return
interface_gadget
.
declareGadget
(
gadget_url
,
{
scope
:
gadget_url
scope
:
gadget_url
})
.
push
(
undefined
,
function
(
error
)
{
var
message
=
"
Error with loading the gadget.
\n
"
;
error
.
message
=
message
+
error
.
message
;
throw
error
;
});
});
})
})
...
@@ -386,10 +363,6 @@
...
@@ -386,10 +363,6 @@
interface_data
.
method_list
.
push
(
method
);
interface_data
.
method_list
.
push
(
method
);
}
}
return
interface_data
;
return
interface_data
;
},
function
(
error
)
{
var
message
=
"
Error with loading the interface data.
\n
"
;
error
.
message
=
message
+
generateErrorMessage
(
error
);
throw
error
;
});
});
})
})
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml
View file @
ecc0a879
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
968.157
07.16175.19985
</string>
</value>
<value>
<string>
968.157
11.48104.9642
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1529078
216.58
</float>
<float>
1529078
407.64
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment