diff --git a/bin/tith.js b/bin/tith.js index 3bf9b9d..6938106 100755 --- a/bin/tith.js +++ b/bin/tith.js @@ -31,7 +31,9 @@ function createTiAppFile(fromPath) { function copyFile(fromPath, toPath) { fs.readFile(fromPath, function (err, data) { - fs.writeFile(toPath, data); + fs.writeFile(toPath, data, (err) => { + if(err) throw err; + }); }); }