Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

error message of scraper should contain file name #1242

Open
markus2330 opened this issue Apr 4, 2024 · 0 comments · May be fixed by #1303
Open

error message of scraper should contain file name #1242

markus2330 opened this issue Apr 4, 2024 · 0 comments · May be fixed by #1303
Assignees
Labels
enhancement New feature or request low priority

Comments

@markus2330
Copy link
Contributor

markus2330 commented Apr 4, 2024

Tasks

Currently:

> npm run insert:plants && npm run insert:relations
> scraper@1.0.0 insert:plants
> node src/insert_plants.js
[INFO] Starting the insertion of plants into database.
/home/jenkins/workspace/PermaplanT_PR-1186/scraper/node_modules/csvtojson/v2/Converter.js:81
                _this.emit('error', new Error("File does not exist. Check to make sure the file path to your csv is correct."));
                                    ^

Error: File does not exist. Check to make sure the file path to your csv is correct.
    at /home/jenkins/workspace/PermaplanT_PR-1186/scraper/node_modules/csvtojson/v2/Converter.js:81:37
    at suppressedCallback (node:fs:275:5)
    at FSReqCallback.oncomplete (node:fs:200:23)

Node.js v18.17.1

script returned exit code 1

Expected: It should be clear which file it tried to open.

Use case

hierarchy

Related Pull request

#1186

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request low priority
Projects
Status: Current Sprint
Development

Successfully merging a pull request may close this issue.

2 participants