Skip to content

Commit fddcf34

Browse files
committed
updated: callback
1 parent 6bba48c commit fddcf34

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

generators/controllers/default.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function view_homepage() {
3333

3434
self.plain('==== index.js\n\n' + a.toString('utf8') + '\n\n==== controllers/default.js\n\n' + b.toString('utf8') + '\n\n==== custom function\n\n' + c);
3535

36-
})();
36+
// async(*, [callback/controller])
37+
// if the async throws an error then controller executes view500(error)
38+
})(self);
3739

3840
}

0 commit comments

Comments
 (0)