Handle when a SomethingResource fails, show Unknown Error

This commit is contained in:
Scott Erickson 2016-02-25 15:15:39 -08:00
parent 43a659ea80
commit 1c4a84dee6

View file

@ -1,5 +1,8 @@
#loading-error.text-center
if jqxhr.status === 401
if !jqxhr
h1(data-i18n="loading_error.unknown")
else if jqxhr.status === 401
h1
span.spr 401:
span(data-i18n="loading_error.login_required")