Skip to content

improved error message when missing import file #35

@ragnarlonn

Description

@ragnarlonn

JS-file:

import { Counter, Rate } from "k6/metrics";
import http from "k6/http";
import https from "jadaja/http";
:
:
:

yields:

time="2016-12-01T22:15:55Z" level=error msg="Couldn't create a runner" error="Error: open /go/src/github.com/loadimpact/k6/js/lib/jadaja/http.js: no such file or directory" 
Error: open /go/src/github.com/loadimpact/k6/js/lib/jadaja/http.js: no such file or directory
Davids-MacBook:samples davidrosen$ 

when file jadaja/http.js is missing.

Imported from https://trello.com/c/MX84A4Jp/111-improved-error-message-when-missing-import-file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions