Skip to content

Commit

Permalink
add extra error information for import
Browse files Browse the repository at this point in the history
  • Loading branch information
doublefint committed Jan 31, 2017
1 parent 8951e12 commit 8b658a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sc.alles.cls
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ ClassMethod import(filemask = "*.*", qspec = "cku-d", ByRef err = "", recurse =
#define push(%dir) s dirs( $i( dirs ) ) = %dir
#define next(%i,%dir) s %i=$o( dirs( "" ), 1, %dir ) k:%i'="" dirs(%i)
#define isDirectory(%type) ( %type = "D" )
#define log w !, filename, " ", +sc

#define log w !, filename, " ", +sc, $S(sc=1:"",1: " "_$system.Status.GetOneErrorText(sc))
s sc = 1, dirs = "", dir = ..workdir() $$$push(dir)

for { $$$next(i,dir) Q:i="" Q:dir=""
Expand Down Expand Up @@ -253,3 +253,4 @@ ClassMethod codets(codename, ext)
}

}

0 comments on commit 8b658a9

Please sign in to comment.