Force the project name to a string or path.resolve will ignore it later. #1890

Merged
merged 1 commit into from Feb 1, 2013

2 participants

@Ryanl92

Without this exports with only digits in their name cannot be exported as path.resolve ignores non-string arguments are ignored [http://nodejs.org/api/path.html#path_path_resolve_from_to]

This just forces the argument to a string when it is read from the command line.
Without this the error occurs at models/Project.server.bones:164.

@Ryanl92 Ryanl92 Force the project name to a string or path.resolve will ignore it later.
Without this exports with only digits in their name cannot be exported
430cbc3
@springmeyer
Mapbox member

Nice catch. I was able to replicate as well.

@springmeyer springmeyer merged commit 9cd5c6f into mapbox:master Feb 1, 2013
@Ryanl92 Ryanl92 deleted the Ryanl92:integer-export-fix branch Feb 3, 2013
@springmeyer springmeyer added a commit that referenced this pull request Feb 9, 2013
@springmeyer springmeyer amend #1890 to ensure that if no argument is passed on the command li…
…ne then we still get proper usage rather than a toString exception
804dfca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment