summaryrefslogtreecommitdiff
path: root/cli/deno_error.rs
AgeCommit message (Collapse)Author
2020-02-23refactor: use OpError instead of ErrBox for errors in ops (#4058)Bartek Iwańczuk
To better reflect changes in error types in JS from #3662 this PR changes default error type used in ops from "ErrBox" to "OpError". "OpError" is a type that can be sent over to JSON; it has all information needed to construct error in JavaScript. That made "GetErrorKind" trait useless and so it was removed altogether. To provide compatibility with previous use of "ErrBox" an implementation of "From<ErrBox> for OpError" was added, however, it is an escape hatch and ops implementors should strive to use "OpError" directly.
2020-02-21refactor: remove unneeded ErrorKinds (#3936)Bartek Iwańczuk
2020-01-20refactor: reduce number of ErrorKind variants (#3662)Bartek Iwańczuk
2020-01-05Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600)Ry Dahl
2020-01-02Happy new year! (#3578)Ry Dahl
2019-12-30upgrade: Tokio 0.2 (#3418)Bartek Iwańczuk
2019-12-05feat: first pass at native plugins (#3372)Andy Finch
2019-11-26Tweaks to arg_hacks and add v8-flags to repl (#3409)Kevin (Kun) "Kassimo" Qian
2019-11-26better error messages for 'relative import path not prefixed with / or ./ or ↵Bartek Iwańczuk
../' (#3405)
2019-10-27Use web standard Permissions API (#3200)Yoshiya Hinosawa
2019-10-22remove --no-prompt flag, fail on missing permissions (#3183)Yoshiya Hinosawa
2019-10-02feat: Add support for passing a key to Deno.env() (#2952)Jed Fox
This adds a new op to get a single env var.
2019-09-25Handle uncaught worker errors without panicking (#3019)Kitson Kelly
2019-09-15Rename ansi.rs to colors.rs (#2956)Tomohito Nakayama
2019-09-11fix: panic during fetch (#2925)Bartek Iwańczuk
2019-08-29third_party: downgrade 'url' crate to version 1.7.2Bert Belder
2019-08-26bring back json ops (#2815)Bartek Iwańczuk
2019-08-24Revert json ops (#2814)Ryan Dahl
* Revert "port more ops to JSON (#2809)" This reverts commit 137f33733d365026903d40e7cde6e34ac6c36dcf. * Revert "port ops to JSON: compiler, errors, fetch, files (#2804)" This reverts commit 79f82cf10ed1dbf91346994250d7311a4d74377a. * Revert "Port rest of os ops to JSON (#2802)" This reverts commit 5b2baa5c990fbeae747e952c5dcd7a5369e950b1.
2019-08-24port more ops to JSON (#2809)Bartek Iwańczuk
2019-08-02third_party: upgrade rust cratesBert Belder
2019-07-30feat: add debug info to ModuleResolutionError (#2697)Bartek Iwańczuk
2019-07-22save headers for all intermediate redirects (#2677)Bartek Iwańczuk
2019-07-18REPL shouldn't panic when it gets SIGINT (#2662)Ryan Dahl
2019-07-12Fix REPL when it receives EOF (#2638)Ryan Dahl
2019-07-11Refactor error to use dynamic dispatch and traitsBert Belder
This is in preperation for dynamic import (#1789), which is more easily implemented when errors are dynamic.
2019-07-08cli: refactor deno_dir to use Url instead of StringBartek Iwańczuk
2019-07-08core: clearly define when module lookup is path-based vs URL-basedBert Belder
The rules are now as follows: * In `import` statements, as mandated by the WHATWG specification, the import specifier is always treated as a URL. If it is a relative URL, it must start with either / or ./ or ../ * A script name passed to deno as a command line argument may be either an absolute URL or a local path. - If the name starts with a valid URI scheme followed by a colon, e.g. 'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a URL (even if Deno doesn't support the indicated protocol). - Otherwise, the script name is interpreted as a local path. The local path may be relative, and operating system semantics determine how it is resolved. Prefixing a relative path with ./ is not required.
2019-06-30core: return useful error when import path has no prefix like ./Bert Belder
2019-06-19Combine CLI Errors (#2487)Kitson Kelly