gtfs 4.18.4 → 4.18.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,8 @@ async function getConfig(argv2) {
101
101
  } catch (error) {
102
102
  if (error instanceof SyntaxError) {
103
103
  throw new Error(
104
- `Cannot parse configuration file. Check to ensure that it is valid JSON. Error: ${error.message}`
104
+ `Cannot parse configuration file. Check to ensure that it is valid JSON. Error: ${error.message}`,
105
+ { cause: error }
105
106
  );
106
107
  }
107
108
  throw error;
@@ -114,7 +115,8 @@ async function unzip(zipfilePath, exportPath) {
114
115
  await zip.close();
115
116
  } catch (error) {
116
117
  throw new Error(
117
- `Failed to extract zip file: ${error instanceof Error ? error.message : "Unknown error"}`
118
+ `Failed to extract zip file: ${error instanceof Error ? error.message : "Unknown error"}`,
119
+ { cause: error }
118
120
  );
119
121
  }
120
122
  }