Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3506977
D5890.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
313 B
Referenced Files
None
Subscribers
None
D5890.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 6:49 PM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2688754
Default Alt Text
D5890.diff (313 B)
Attached To
Mode
D5890: [lib] Handle string exception in getMessageForException
Attached
Detach File
Event Timeline
Log In to Comment