Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
ff18064a
Commit
ff18064a
authored
Mar 16, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handling erroros coming from user configuration
parent
9f8d7ee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
debomatic-webui/lib/config.js
debomatic-webui/lib/config.js
+8
-2
No files found.
debomatic-webui/lib/config.js
View file @
ff18064a
...
@@ -116,6 +116,12 @@ try {
...
@@ -116,6 +116,12 @@ try {
console
.
log
(
"
Reading user configutation ...
"
)
console
.
log
(
"
Reading user configutation ...
"
)
module
.
exports
=
_merge
(
config
,
user_config
)
module
.
exports
=
_merge
(
config
,
user_config
)
}
catch
(
err
)
{
}
catch
(
err
)
{
consol
.
log
(
"
error reading user configutation
"
,
err
)
if
(
err
.
code
==
'
MODULE_NOT_FOUND
'
)
{
module
.
exports
=
config
console
.
log
(
"
User configutation not found. Using global settings.
"
)
module
.
exports
=
config
}
else
{
console
.
error
(
"
Error reading user configutation
"
,
err
)
process
.
exit
(
1
)
}
}
}
\ No newline at end of file
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