 
             return try script(from: file)
         } catch {
-            throw Error.failedToDownloadScript(url)
+            throw Error.failedToDownloadScript(url, error)
         }
     }
 

    case failedToCreatePackageFile(Folder)
    case failedToAddDependencyScript(String)
    case failedToRemoveScriptFolder(Folder)
    case failedToDownloadScript(URL)
}

extension ScriptManagerError: PrintableError {

            return "Failed to add the dependency script at '\(path)'"
        case .failedToRemoveScriptFolder(_):
            return "Failed to remove script folder"
        case .failedToDownloadScript(let url, let error):
            return "Failed to download script from '\(url.absoluteString)' (\(error))"
        }
    }

