Skip to content

Commit 28e5cac

Browse files
committed
fix error handling for universal notifications
1 parent 1dbd799 commit 28e5cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/tcApiHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function* getUsersByUserUUIDs(ids, enrich) {
179179
}
180180
return users;
181181
} catch (err) {
182-
const error = new Error(err.response.text);
182+
const error = new Error(_.get(err, 'response.text', err.toString()));
183183
error.status = err.status;
184184
throw error;
185185
}

0 commit comments

Comments
 (0)