mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(log) makeColor: mac os
This commit is contained in:
parent
c83cbeeb22
commit
7981d4a257
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const config = require('../config');
|
|||
const datetime = require('../../common/datetime');
|
||||
|
||||
const log = (name, msg) => config('log') && console.log(`${datetime()} -> ${name}: ${msg}`);
|
||||
const makeColor = (a, color) => chalk.rgb(color || stringToRGB(a))(a);
|
||||
const makeColor = (a, color) => chalk.rgb.apply(chalk, color || stringToRGB(a))(a);
|
||||
const getMessage = (e) => e.message || e;
|
||||
const getDescription = (e) => `${e.type}: ${e.description}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue