openapi: Fix error logging

pull/4685/head
Richard Hansen 2021-01-24 00:52:24 -05:00 committed by John McLear
parent 56f617060a
commit 42c25b2536
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
} else { } else {
// an unknown error happened // an unknown error happened
// log it and throw internal error // log it and throw internal error
apiLogger.error(err); apiLogger.error(err.stack || err.toString());
throw new createHTTPError.InternalError('internal error'); throw new createHTTPError.InternalError('internal error');
} }
}); });