Skip to content

Commit bd9c0f3

Browse files
committed
don't use indent on error objects.
1 parent 0b14a14 commit bd9c0f3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/11-script-errors.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ flavors.forEach(function (flavor) {
3737
dom.MethodDoesNotExist("muh");
3838
`, function (error, stdout, objects) {
3939
if (error) {
40-
console.error(indent(error, 6));
40+
console.error(error);
4141
}
4242
});
4343
});
@@ -56,7 +56,7 @@ dom.MethodDoesNotExist("muh");
5656
WriteLine(bla");
5757
`, function (error, stdout, objects) {
5858
if (error) {
59-
console.error(indent(error, 6));
59+
console.error(error);
6060
}
6161
});
6262
});
@@ -76,7 +76,7 @@ var unknown = dom.GetObject("doesNotExist");
7676
WriteLine(unknown.Name());
7777
`, function (error, stdout, objects) {
7878
if (error) {
79-
console.error(indent(error, 6));
79+
console.error(error);
8080
}
8181
});
8282
});
@@ -98,7 +98,7 @@ var b = system.ToFloat("1.4");
9898
var c = system.ToFloat("a");
9999
`, function (error, stdout, objects) {
100100
if (error) {
101-
console.error(indent(error, 6));
101+
console.error(error);
102102
}
103103
});
104104
});
@@ -120,7 +120,6 @@ WriteLine(infinite);
120120
`, function (error, stdout, objects) {
121121
if (error) {
122122
console.error(error);
123-
console.error(indent(error, 6));
124123
}
125124
});
126125
});

0 commit comments

Comments
 (0)