Skip to content

Commit f2e40a5

Browse files
authored
better formatting of errors and tracebacks
1 parent fe3b1c8 commit f2e40a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitTesting/UnitTesting.gs

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ function Package (config) {
185185

186186
var failComment = '';
187187
if (comment != null) failComment = 'Comment: '+comment;
188-
189-
throw Error(failComment +' -- Failure: '+ message);
188+
message.__print__;
189+
throw Error(failComment +'\n\t\t -- Failure: '+ message + '\n ');
190190
}
191191

192192

@@ -974,4 +974,4 @@ function Package (config) {
974974
result: true,
975975
}
976976

977-
);
977+
);

0 commit comments

Comments
 (0)