Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jan
kresus
Commits
f0633730
Commit
f0633730
authored
Aug 28, 2016
by
Benjamin Bouvier
Browse files
Fixes #449: Don't raise an error when importing an unknown favorite account;
parent
13861c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/controllers/all.js
View file @
f0633730
...
...
@@ -374,7 +374,8 @@ module.exports.import = async function(req, res) {
if
(
setting
.
name
===
'
defaultAccountId
'
)
{
if
(
typeof
accountMap
[
setting
.
value
]
===
'
undefined
'
)
{
throw
new
KError
(
`unknown default account id:
${
setting
.
value
}
`
,
400
);
log
.
warn
(
`unknown default account id:
${
setting
.
value
}
, skipping.`
);
continue
;
}
setting
.
value
=
accountMap
[
setting
.
value
];
...
...
Write
Preview
Supports
Markdown
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