Skip to content

Commit d083a1a

Browse files
committed
Updated F.script
1 parent 4b0b150 commit d083a1a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- added: `F.listenpath` contains `default-listenpath` location
55

66
- updated: `F.http(type, options)` supports `options.listenpath` for HTTP server (a direct shortcut for `default-listenpath`)
7+
- updated: `F.script` returns error if compilation fails
78

89
- fixed: `controller.send()` bad declaration of `connection.id` for `id` and `blacklist` arguments
910

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ F.script = function(body, value, callback, param) {
10331033

10341034
if (err) {
10351035
callback && callback(err);
1036-
return compilation ? null : F;
1036+
return compilation ? err : F;
10371037
}
10381038

10391039
if (compilation) {

0 commit comments

Comments
 (0)