on master help sign in
Make sure helpers are embeded.
commit10d3505312351c0016a77cc79214cd190785c533 authorRob Blanckaert <basicer@basicer.com> dateWed 14 Nov 2018, 03:06 (8 years ago) parent41ca071
1 file changed+2−2
languages/nodejs/main.go+2−2
languages/nodejs/main.go+2−2
@@ -11,7 +11,7 @@ import (
1111)
1212
1313func findHelper(path string) string {
14− bytes, err := File(path)
14+ bytes, err := File(path + ".js")
1515 if bytes != nil {
1616 f, err := ioutil.TempFile("", "prybar-nodejs-*.js")
1717 if err != nil {
@@ -29,7 +29,7 @@ func findHelper(path string) string {
2929 if err != nil {
3030 panic(err)
3131 }
32− return "./languages/nodejs/" + path + ".js"
32+ panic("File not found")
3333}
3434
3535func Execute(config *utils.Config) {