Moved line
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
20862db854
commit
edd25a347b
|
@ -145,10 +145,10 @@ module.exports = function(Self) {
|
|||
rewriteDbError(replaceErrFunc) {
|
||||
function replaceErr(err, replaceErrFunc) {
|
||||
if (Array.isArray(err)) {
|
||||
let errs = [];
|
||||
const errors = err.filter(error => {
|
||||
return error != undefined && error != null;
|
||||
});
|
||||
let errs = [];
|
||||
for (let e of errors) {
|
||||
if (!(e instanceof UserError))
|
||||
errs.push(replaceErrFunc(e));
|
||||
|
|
Loading…
Reference in New Issue