Page MenuHomePhabricator

D5890.diff
No OneTemporary

D5890.diff

diff --git a/lib/utils/errors.js b/lib/utils/errors.js
--- a/lib/utils/errors.js
+++ b/lib/utils/errors.js
@@ -42,7 +42,9 @@
}
function getMessageForException(e: mixed): ?string {
- if (
+ if (typeof e === 'string') {
+ return e;
+ } else if (
e &&
typeof e === 'object' &&
e.message &&

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 6, 9:31 AM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248833
Default Alt Text
D5890.diff (313 B)

Event Timeline