Skip to content

Commit

Permalink
added stderr output
Browse files Browse the repository at this point in the history
Signed-off-by: shruti2522 <shruti.apc01@gmail.com>
  • Loading branch information
shruti2522 committed May 4, 2024
1 parent f9a2293 commit 856216e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kclvm/sema/src/builtin/system_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ register_file_member! {
)
mkdir => Type::function(
None,
Type::str_ref(),
Type::any_ref(),
&[
Parameter {
name: "directory".to_string(),
Expand All @@ -1654,7 +1654,7 @@ register_file_member! {
)
delete => Type::function(
None,
Type::str_ref(),
Type::any_ref(),
&[
Parameter {
name: "filepath".to_string(),
Expand Down
1 change: 1 addition & 0 deletions test/grammar/builtins/file/delete/stderr.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
delete: failed to delete 'test_dir': No such file or directory
2 changes: 1 addition & 1 deletion test/grammar/builtins/file/delete/stdout.golden
Original file line number Diff line number Diff line change
@@ -1 +1 @@
delete: 'failed to delete 'test_dir': No such file or directory'
delete: ''
2 changes: 2 additions & 0 deletions test/grammar/builtins/file/mkdir/stderr.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mkdir: failed to create directory 'test_dir': File exists

2 changes: 1 addition & 1 deletion test/grammar/builtins/file/mkdir/stdout.golden
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mkdir: created directory 'test_dir'
mkdir: ''

0 comments on commit 856216e

Please sign in to comment.