Skip to content

Refactored and improved Errorhandling#305

Merged
technoweenie merged 7 commits intogit-lfs:masterfrom
michael-k:errorhandling
May 15, 2015
Merged

Refactored and improved Errorhandling#305
technoweenie merged 7 commits intogit-lfs:masterfrom
michael-k:errorhandling

Conversation

@michael-k
Copy link
Contributor

My changes are mostly refactoring. Non-refactoring changes are:

  • Don't return a file name we didn't write to eb12f25
  • Write error to stderr, even if os.MkdirAll fails e8c6175

The cases where os.MkdirAll and os.Create fail, are (still) handled differently and I'm not sure if this was intended in the first place. (The previous code didn't make it that obvious.) Please review.

@technoweenie
Copy link
Contributor

Looks good to me. 👍

Thanks for looking though this. When we started this repository over a year ago, we were very new to Go. This command error logging code is probably the oldest code in here :)

technoweenie added a commit that referenced this pull request May 15, 2015
Refactored and improved Errorhandling
@technoweenie technoweenie merged commit 0854875 into git-lfs:master May 15, 2015
@michael-k michael-k deleted the errorhandling branch May 16, 2015 20:07
@technoweenie technoweenie mentioned this pull request Jun 11, 2015
38 tasks
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.

2 participants