mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 20:18:40 +08:00

When Ember rendering fails for some reason, `this.header` will be undefined. This causes site-header to raise an error, which often gets printed to the console more obviously than the actual root cause. This commit makes site-header fail more gracefully in this situation, to avoid it being a red-herring during development/debugging.