main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
308 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Logs out a message if there is no format option set.
|
---|
| 5 | * @param {String} message - Message to log.
|
---|
| 6 | */
|
---|
| 7 | function error(message) {
|
---|
| 8 | if (!/=-(f|-format)=/.test(process.argv.join('='))) {
|
---|
| 9 | // eslint-disable-next-line no-console
|
---|
| 10 | console.error(message);
|
---|
| 11 | }
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | module.exports = error;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.