Check disk before even trying to run the download

This commit is contained in:
Dane Everitt
2020-12-20 11:08:01 -08:00
parent 17daa2071f
commit 9c53436470
5 changed files with 18 additions and 8 deletions

View File

@@ -67,10 +67,6 @@ func IsErrorCode(err error, code ErrorCode) bool {
return false
}
func NewDiskSpaceError() *Error {
return &Error{code: ErrCodeDiskSpace}
}
// Returns a new BadPathResolution error.
func NewBadPathResolution(path string, resolved string) *Error {
return &Error{code: ErrCodePathResolution, path: path, resolved: resolved}