You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ka...@apache.org on 2014/06/19 00:37:05 UTC
git commit: CB-6540 Rephrase Error msg for creating a project inside
its template
Repository: cordova-lib
Updated Branches:
refs/heads/master ba59ae9c9 -> f7f92e831
CB-6540 Rephrase Error msg for creating a project inside its template
github: close #35
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/f7f92e83
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/f7f92e83
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/f7f92e83
Branch: refs/heads/master
Commit: f7f92e83154d5ae06fb692f2821893a84bc7f595
Parents: ba59ae9
Author: Josh Soref <js...@blackberry.com>
Authored: Wed Jun 18 18:17:19 2014 -0400
Committer: Mark Koudritsky <ka...@gmail.com>
Committed: Wed Jun 18 18:35:56 2014 -0400
----------------------------------------------------------------------
cordova-lib/src/cordova/create.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f7f92e83/cordova-lib/src/cordova/create.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/create.js b/cordova-lib/src/cordova/create.js
index 99cb3cf..b2ef453 100644
--- a/cordova-lib/src/cordova/create.js
+++ b/cordova-lib/src/cordova/create.js
@@ -109,9 +109,10 @@ function create(dir, id, name, cfg) {
var does_relative_path_go_up_at_least_one_dir = relative_path_from_source_to_target.split(path.sep)[0] == '..';
if (!does_relative_path_go_up_at_least_one_dir) {
throw new CordovaError(
- 'Project must not be created inside the www assets dir.' +
- '\n project dir:\t' + dir +
- '\n www assets dir:\t' + config_json.lib.www.uri
+ 'Project dir "' +
+ dir +
+ '" must not be created at/inside the template used to create the project "' +
+ config_json.lib.www.uri + '".'
);
}
if(symlink) {