Skip to content

fix : changed console.log to console.error in useTasks error handlers - #2065

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#2060
Open

fix : changed console.log to console.error in useTasks error handlers#2065
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#2060

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Replaced console.log with console.error in error handling paths of useTasks.js to ensure proper error severity classification in browser devtools.

Changes Made

  • getTasks catch block: changed console.log to console.error
  • addTask catch block: changed console.log("FULL ERROR:", error) to console.error
  • updateTask catch block: changed console.log to console.error

Impact it Made

  • Proper error severity in browser devtools logs
  • Easier filtering and searching for actual errors
  • Consistent error handling across the application

Closes #2060

Note

Please assign this PR to the tmdeveloper007 account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug : add console.error logging in useTasks error handlers

1 participant