Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Purpose and use of showStackError in module /config/lib/express.js #1447

Closed
miller-productions opened this issue Aug 26, 2016 · 2 comments
Closed

Comments

@miller-productions
Copy link

miller-productions commented Aug 26, 2016

Hi folks,

A query regarding a setting in module config/lib/express.js...

Inside the function initMiddleware there is the following call:

app.set('showStackError', true);

What is the intent behind this? I suspect it is related to whether or not to show full stack traces in the client response on error, however I am puzzled as to how/where this is used. I ask this question for the following reasons:

  1. this setting doesn't appear to be used/read anywhere else in the app. i.e. a search here in the github repository for the setting showStackError returns only a single result, i.e. where it is set. I understand from this that it is probably not intended to be 'used' by the app but rather by the express module internally;
  2. according to the express API doc, app.set(name, value) assigns setting name to value, where name is one of the properties from the app settings table. However, I note that showStackError isn't listed in said app settings table.

I must admit, I am still learning and understanding the meanjs project so please forgive me in advance if I have misunderstood something.

Thanks for your time reading and considering this question.

Sincerely,
Dan

@lirantal
Copy link
Member

@danoz-direct it's an old one indeed that doesn't exist anymore.
Can you submit a PR to remove both this one and the other jsonp option that you noted in the other issue?

@mleanos
Copy link
Member

mleanos commented Sep 30, 2016

Resolved with #1463

@mleanos mleanos closed this as completed Sep 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants