Skip to content

Commit 3c61c13

Browse files
authored
[ENGG-2547] propagate error from API client requester to UI (#132)
* [ENGG-2547] propagate error from API client requester * fix: change
1 parent fe06293 commit 3c61c13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/actions/makeApiClientRequest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ const makeApiClientRequest = async ({ apiRequest }) => {
7676
};
7777
} catch (e) {
7878
console.log("Error while making api client request", e);
79-
return null;
79+
return {
80+
error: e.message,
81+
};
8082
}
8183
};
8284

0 commit comments

Comments
 (0)