Merge pull request #306 from resin-io/misc/messages

Improve messages
This commit is contained in:
Juan Cruz Viotti 2016-01-25 09:50:56 -04:00
commit dd382158dd
4 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ limitations under the License.
}
return capitano.runAsync(configure).then(function() {
var message;
message = 'Initializing a device requires administration permissions\ngiven that we need to access raw devices directly.\n';
message = 'Initializing a device requires administrative permissions\ngiven that we need to access raw devices directly.\n';
return helpers.sudo(['os', 'initialize', temporalPath, '--type', application.device_type], message);
})["catch"](function(error) {
return resin.models.device.remove(device.uuid)["finally"](function() {

View File

@ -176,7 +176,7 @@ limitations under the License.
return resin.models.device.isOnline(uuid).then(function(isOnline) {
if (isOnline) {
spinner.stop();
console.info("Device became online: " + deviceName);
console.info("The device **" + deviceName + "** is online!");
} else {
spinner.start();
return Promise.delay(3000).then(poll);

View File

@ -298,7 +298,7 @@ exports.init =
configure += ' --advanced' if options.advanced
capitano.runAsync(configure).then ->
message = '''
Initializing a device requires administration permissions
Initializing a device requires administrative permissions
given that we need to access raw devices directly.
'''

View File

@ -135,7 +135,7 @@ exports.awaitDevice = (uuid) ->
resin.models.device.isOnline(uuid).then (isOnline) ->
if isOnline
spinner.stop()
console.info("Device became online: #{deviceName}")
console.info("The device **#{deviceName}** is online!")
return
else