Skip to content

Commit

Permalink
append error message to exception log
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Feb 10, 2024
1 parent 9dadc87 commit 5e6da2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function fetchToken(): Promise<RedditTokenResponse> {
access_token: data.access_token
}
} catch (error) {
console.error('Exception thrown in fetchToken()')
console.error(`Exception thrown in fetchToken(): ${error}`)
return {error: `${error}`}
}
}
Expand Down Expand Up @@ -95,7 +95,7 @@ export async function fetchSearchResults(
// Return the search results.
return data
} catch (error) {
console.error('Exception thrown in fetchSearchResults()')
console.error(`Exception thrown in fetchSearchResults(): ${error}`)
return {error: `${error}`}
}
}
Expand Down Expand Up @@ -156,7 +156,7 @@ export async function fetchSubredditPosts(
}
}
} catch (error) {
console.error('Exception thrown in fetchSubredditPosts()')
console.error(`Exception thrown in fetchSubredditPosts(): ${error}`)
return {error: `${error}`}
}
}

0 comments on commit 5e6da2c

Please sign in to comment.