Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unfriendly error message when the source include missing module specifier (js api) #348

Closed
kt3k opened this issue Sep 7, 2023 · 1 comment

Comments

@kt3k
Copy link
Member

kt3k commented Sep 7, 2023

This script has missing import (import { bar } from "./bar').

Calling doc to this file causes unintelligible error message:

import { doc } from "https://deno.land/x/deno_doc@0.66.0/mod.ts";
doc("https://gist.githubusercontent.com/kt3k/af3bea6ea3af02157aeb05bcaaf2bc1f/raw/ca0a9e0263da5b1b8644ec0a4ec6b2e5d711a909/test.ts");
error: Uncaught (in promise) Error: ./bar
      const ret = new Error(getStringFromWasm0(arg0, arg1));
                  ^
    at __wbg_new_87297f22973157c8 (https://deno.land/x/deno_doc@0.66.0/deno_doc.generated.js:511:19)
    at <anonymous> (file:///Users/kt3k/Library/Application%20Support/deno-wasmbuild/77550c0201354e9dac0334848140f9ccdfad5b101f52f8ca77043fb1bd3e90c2.wasm:1:2149419)
    at <anonymous> (file:///Users/kt3k/Library/Application%20Support/deno-wasmbuild/77550c0201354e9dac0334848140f9ccdfad5b101f52f8ca77043fb1bd3e90c2.wasm:1:295114)
    at <anonymous> (file:///Users/kt3k/Library/Application%20Support/deno-wasmbuild/77550c0201354e9dac0334848140f9ccdfad5b101f52f8ca77043fb1bd3e90c2.wasm:1:1521206)
    at <anonymous> (file:///Users/kt3k/Library/Application%20Support/deno-wasmbuild/77550c0201354e9dac0334848140f9ccdfad5b101f52f8ca77043fb1bd3e90c2.wasm:1:2103119)
    at __wbg_adapter_46 (https://deno.land/x/deno_doc@0.66.0/deno_doc.generated.js:240:8)
    at real (https://deno.land/x/deno_doc@0.66.0/deno_doc.generated.js:225:14)
    at eventLoopTick (ext:core/01_core.js:183:11)
@crowlKats
Copy link
Member

Closing as the error is better now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants