mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
8 lines
216 B
TypeScript
8 lines
216 B
TypeScript
import { trace } from "../conf";
|
|
import chalk from "chalk";
|
|
|
|
function showError(error: any, message: any="[Error]: ") {
|
|
console.error(chalk.red(message), trace ? error : error.message);
|
|
}
|
|
|
|
export default showError; |