Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If TODO file not found, throw a nice error #7

Open
pauby opened this issue Feb 11, 2020 · 0 comments
Open

If TODO file not found, throw a nice error #7

pauby opened this issue Feb 11, 2020 · 0 comments
Milestone

Comments

@pauby
Copy link
Owner

pauby commented Feb 11, 2020

In Import-TWTodo if the -Path is not found an exception is thrown:

Import-TWTodo : Could not find 'C:\Todo\todo.txt'.
At C:\Users\Paul\Documents\PowerShell\Modules\PSTodoWarrior\0.0.3\PSTodoWarrior.psm1:532 char:22
+     $script:TWTodo = Import-TWTodo
+                      ~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Import-TWTodo

Maybe not throw, but let the user know more gracefully.

@pauby pauby changed the title If TODO file not found, don't throw a nice error If TODO file not found, throw a nice error Feb 11, 2020
@pauby pauby added this to the 0.1.0 milestone Mar 19, 2020
@pauby pauby modified the milestones: 0.1.0, 0.5.0 Mar 31, 2020
@pauby pauby modified the milestones: 0.5.0, 0.2.0 May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant