You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rm command does't fail nicely if the time entry isn't found
$ toggl rm 3614353629
toggl rm <id>
Remove a time entry by id
Options:
--version Show version number [boolean]
--help Show help [boolean]
Error: Toggl API responded with status code 404. Response: "Time entry not found"
at TogglClient.request (file:///Users/beauraines/.nvm/versions/node/v20.14.0/lib/node_modules/@beauraines/toggl-cli/node_modules/toggl-client/lib/client.js:90:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TogglClient.delete (file:///Users/beauraines/.nvm/versions/node/v20.14.0/lib/node_modules/@beauraines/toggl-cli/node_modules/toggl-client/lib/client.js:79:12)
at async TimeEntries.delete (file:///Users/beauraines/.nvm/versions/node/v20.14.0/lib/node_modules/@beauraines/toggl-cli/node_modules/toggl-client/lib/time-entries.js:129:5)
at async Object.handler (file:///Users/beauraines/.nvm/versions/node/v20.14.0/lib/node_modules/@beauraines/toggl-cli/cmds/removeTimeEntry.mjs:10:19)
Add some exception handling or status catching and a nice error message
The text was updated successfully, but these errors were encountered:
The
rm
command does't fail nicely if the time entry isn't foundAdd some exception handling or status catching and a nice error message
The text was updated successfully, but these errors were encountered: