Skip to content

Commit

Permalink
bug/stack trace error handling (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcblundell authored Aug 22, 2024
2 parents 1984b13 + c0e9696 commit d788651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/operation-details/StackTrace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function StackTrace({ stackTrace }: StackTraceProps) {
setIsFetchingFile(true);

const response = await readRemoteFile(connectionWithFilePath);
console.log(response);
setFileContents(response);

setIsFetchingFile(false);
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useRemote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const useRemoteConnection = () => {

return response.data;
} catch (error) {
return axios.isAxiosError(error);
return axios.isAxiosError(error) ? error.message : error;
}
};

Expand Down

0 comments on commit d788651

Please sign in to comment.