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

error message of scraper should contain file name #1242

Description

@markus2330

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Current Sprint

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions