-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from kcl-lang/chore-remove-error-prefix
chore: remove error prefix in the error message
- Loading branch information
Showing
33 changed files
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/e2e/test_suites/kpm/exec_inside_pkg/add_path_not_exist/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
error: could not load 'kcl.mod' in '<workspace>/an_invalid_kcl_pkg' | ||
could not load 'kcl.mod' in '<workspace>/an_invalid_kcl_pkg' |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_name_invalid_tag/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: failed to get package with 'not_exist_tag' from 'localhost:5001/test/k8s' | ||
error: failed to resolve not_exist_tag: localhost:5001/test/k8s:not_exist_tag: not found | ||
failed to get package with 'not_exist_tag' from 'localhost:5001/test/k8s' | ||
failed to resolve not_exist_tag: localhost:5001/test/k8s:not_exist_tag: not found |
2 changes: 1 addition & 1 deletion
2
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_no_args/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
error: invalid 'kpm add' argument, you must provide a package name or url for the package | ||
invalid 'kpm add' argument, you must provide a package name or url for the package |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_inside_pkg/kpm_push_with_invalid_url/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: only support url scheme 'oci://' | ||
error: invalid oci url | ||
only support url scheme 'oci://' | ||
invalid oci url |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_inside_pkg/run_with_not_exist_input/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: failed to compile the kcl package | ||
error: Cannot find the kcl file, please check the file path | ||
failed to compile the kcl package | ||
Cannot find the kcl file, please check the file path |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/add_exist_not_pkgpath/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/add_path_not_exist/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/add_with_name_outside/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/add_with_name_tag_outside/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/add_with_no_args_outside/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/kpm_pull_with_no_args/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: oci url or package name must be specified | ||
error: failed to pull kcl package | ||
oci url or package name must be specified | ||
failed to pull kcl package |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/kpm_pull_with_only_tag/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: oci url or package name must be specified | ||
error: failed to pull kcl package | ||
oci url or package name must be specified | ||
failed to pull kcl package |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/kpm_push_with_invalid_url/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: only support url scheme 'oci://' | ||
error: invalid oci url | ||
only support url scheme 'oci://' | ||
invalid oci url |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/login_reg_without_username/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: failed to login 'ghcr.io', please check registry, username and password is valid | ||
error: Get "https://ghcr.io/v2/": unsupported | ||
failed to login 'ghcr.io', please check registry, username and password is valid | ||
Get "https://ghcr.io/v2/": unsupported |
2 changes: 1 addition & 1 deletion
2
test/e2e/test_suites/kpm/exec_outside_pkg/login_with_no_args/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
error: registry must be specified | ||
registry must be specified |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/logout_reg_with_invalid_reg/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: failed to logout 'invalid_registry' | ||
error: not logged in | ||
failed to logout 'invalid_registry' | ||
not logged in |
2 changes: 1 addition & 1 deletion
2
test/e2e/test_suites/kpm/exec_outside_pkg/logout_reg_without_args/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
error: registry must be specified | ||
registry must be specified |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/run_oci_with_invalid_ref/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: failed to get package with 'invalid_tag' from 'localhost:5001/test/invalid_oci_repo' | ||
error: failed to resolve invalid_tag: localhost:5001/test/invalid_oci_repo:invalid_tag: not found | ||
failed to get package with 'invalid_tag' from 'localhost:5001/test/invalid_oci_repo' | ||
failed to resolve invalid_tag: localhost:5001/test/invalid_oci_repo:invalid_tag: not found |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/run_oci_with_invalid_url/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: repository 'invalid_url/' not found | ||
error: invalid reference: invalid repository | ||
repository 'invalid_url/' not found | ||
invalid reference: invalid repository |
4 changes: 2 additions & 2 deletions
4
...e/test_suites/kpm/exec_outside_pkg/run_oci_with_invalid_url_without_tag/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: repository 'invalid_rul/' not found | ||
error: invalid reference: invalid repository | ||
repository 'invalid_rul/' not found | ||
invalid reference: invalid repository |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/run_tar_with_noargs_input/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/run_tar_with_not_exist_input/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: failed to compile the kcl package | ||
error: Cannot find the kcl file, please check the file path | ||
failed to compile the kcl package | ||
Cannot find the kcl file, please check the file path |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/exec_outside_pkg/run_with_no_args/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: could not load 'kcl.mod' in '<workspace>' | ||
error: open <workspace>/kcl.mod: no such file or directory | ||
could not load 'kcl.mod' in '<workspace>' | ||
open <workspace>/kcl.mod: no such file or directory |
2 changes: 1 addition & 1 deletion
2
test/e2e/test_suites/kpm/ignores/kpm_push_without_url/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
error: oci url must be specified | ||
oci url must be specified |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_with_multi_kfile_1/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: only allows one package to be compiled at a time | ||
error: cannot compile multiple packages [<workspace>/test_kpm_run_with_multi_kfile_1 <workspace>/test_kpm_run_with_multi_kfile_1/sub] at the same time | ||
only allows one package to be compiled at a time | ||
cannot compile multiple packages [<workspace>/test_kpm_run_with_multi_kfile_1 <workspace>/test_kpm_run_with_multi_kfile_1/sub] at the same time |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_with_multi_pkg/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: only allows one package to be compiled at a time | ||
error: cannot compile multiple packages [<workspace>/test_kpm_run_with_multi_pkg/kcl1 <workspace>/test_kpm_run_with_multi_pkg/kcl2] at the same time | ||
only allows one package to be compiled at a time | ||
cannot compile multiple packages [<workspace>/test_kpm_run_with_multi_pkg/kcl1 <workspace>/test_kpm_run_with_multi_pkg/kcl2] at the same time |
4 changes: 2 additions & 2 deletions
4
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_with_multi_pkg_1/test_suite.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: only allows one package to be compiled at a time | ||
error: cannot compile multiple packages [<workspace>/test_kpm_run_with_multi_pkg_1/kcl1 <workspace>/test_kpm_run_with_multi_pkg_1/kcl2 oci://kcl-lang/kcl] at the same time | ||
only allows one package to be compiled at a time | ||
cannot compile multiple packages [<workspace>/test_kpm_run_with_multi_pkg_1/kcl1 <workspace>/test_kpm_run_with_multi_pkg_1/kcl2 oci://kcl-lang/kcl] at the same time |