File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1111import * as fs from "fs" ;
1212import { load } from "js-yaml" ;
1313import { LogService , RichConsoleLogger } from "matrix-bot-sdk" ;
14+ // Needed for https://github.com/the-draupnir-project/Draupnir/issues/480
15+ // sorry buddy...
16+ process . env . SUPPRESS_NO_CONFIG_WARNING = "y" ;
1417import Config from "config" ;
1518import path from "path" ;
1619import { SafeModeBootOption } from "./safemode/BootOption" ;
@@ -286,7 +289,9 @@ function getConfigPath(): {
286289 }
287290 const path = Config . util . getConfigSources ( ) . at ( - 1 ) ?. name ;
288291 if ( path === undefined ) {
289- throw new TypeError ( "No configuration path has been found for Draupnir" ) ;
292+ throw new TypeError (
293+ "No configuration path has been found for Draupnir. Use the --draupnir-config option to provide a path to the config."
294+ ) ;
290295 }
291296 return { isDraupnirPath : false , path } ;
292297}
You can’t perform that action at this time.
0 commit comments