Skip to content

Commit 06ea58b

Browse files
committed
README and error message tweaks
1 parent e38d0df commit 06ea58b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ not activated), the table might look something like this:
255255
```sh
256256
$ mysql -u root foo
257257
258-
MariaDB [foo]> select `key`, left(`value`, 10), is_active from bar_bootstrap;
258+
MariaDB [foo]> select `key`, left(`value`, 10), `is_active` from bar_bootstrap;
259259
+----------------------------------+-------------------+-----------+
260260
| key | left(`value`, 10) | is_active |
261261
+----------------------------------+-------------------+-----------+
@@ -270,10 +270,10 @@ table:
270270
271271
```sh
272272
$ ember deploy:activate production --revision=cc9d9af44ad70f4a6732c1c13deb246e
273-
✔ Activated revision `cc9d9af44ad70f4a6732c1c13deb246e`
273+
✔ Activated revision `cc9d9af44ad70f4a6732c1c13deb246e'
274274
$ mysql -u root foo
275275

276-
MariaDB [foo]> select `key`, left(`value`, 10), is_active from bar_bootstrap;
276+
MariaDB [foo]> select `key`, left(`value`, 10), `is_active` from bar_bootstrap;
277277
+----------------------------------+-------------------+-----------+
278278
| key | left(`value`, 10) | is_active |
279279
+----------------------------------+-------------------+-----------+

lib/deploy-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function conditionallyCreateRevision(tableName, revisionKey, value) {
7272
return doesRevisionExist.call(this, tableName, revisionKey)
7373
.then(exists => {
7474
if (exists && !this.allowOverwrite) {
75-
return Promise.reject(`Revision already exists in \`${tableName}': ${revisionKey}`);
75+
return Promise.reject(`Revision \`${revisionKey}' already exists in \`${tableName}'`);
7676
}
7777

7878
// TODO: is there a better way to do a portable upsert?
@@ -95,7 +95,7 @@ function validateRevision(tableName, revisionKey) {
9595
return revisionKey;
9696
}
9797

98-
return Promise.reject(`\`revisionKey' is not a valid revision key`);
98+
return Promise.reject(`\`${revisionKey}' is not a valid revision key`);
9999
});
100100
}
101101

0 commit comments

Comments
 (0)