Skip to content

Comments

BETTER debugging and general Improvements#6

Open
Marcial1234 wants to merge 1 commit intoCEN3031-spr16:masterfrom
Marcial1234:master
Open

BETTER debugging and general Improvements#6
Marcial1234 wants to merge 1 commit intoCEN3031-spr16:masterfrom
Marcial1234:master

Conversation

@Marcial1234
Copy link

@Marcial1234 Marcial1234 commented Sep 9, 2017

Improvements

I spent about an hour or so trying to figure out what was wrong with the Google Maps API. This PR adds logging instructions in case of no API key or general errors with the API.

  • Ignoring ALL 'config.js' and not only a specific one in a sub-directory (useful when changing branches)
  • Typo fixes

TODO

  • Update README accordingly.

@Marcial1234 Marcial1234 force-pushed the master branch 2 times, most recently from 236a6af to 25eb396 Compare September 9, 2017 04:18
@Marcial1234 Marcial1234 changed the title Improvements Improvements and BETTER debugging help Sep 9, 2017
@Marcial1234 Marcial1234 changed the title Improvements and BETTER debugging help BETTER debugging and general Improvements Sep 9, 2017

# configuration files
server/config/config.js
config.js
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignores ALL config files

var app = express();

// Readable JSON output
app.set('json spaces', 4);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better JSON output. Although not necessarily need, better for general debugging JSON

} else {
req.results = undefined
console.log(data);
}
Copy link
Author

@Marcial1234 Marcial1234 Sep 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above is the main reason for this PR (see whole file diff)

/* Remove the article */
/* Remove the listing */
};

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of typos on this file

@MichaelChan-Pong
Copy link

MichaelChan-Pong commented Sep 13, 2017

you're so extra, Marcial lol

@Marcial1234
Copy link
Author

Merge in maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants