Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UnleashedMind committed Mar 17, 2018
1 parent 10b0f15 commit 5c20d69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/aws-operations/mobile-yaml-ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function readYamlFileSync(ymlFilePath, throwError){
let yml = fs.readFileSync(ymlFilePath)
backendProject = jsyaml.safeLoad(yml, { schema: ymalSchema.AWS_MOBILE_YAML_SCHEMA, noCompatMode: true, scalarType: 5, noRefs: true, skipInvalid: true })
}catch(e){
backendProject = undefined
if (throwError) {
console.log(chalk.red('error occured in parsing the yaml file:'))
console.log(ymlFilePath)
Expand Down

0 comments on commit 5c20d69

Please sign in to comment.