Explorar o código

add error catch to settings.defaults

Henry Oswald %!s(int64=8) %!d(string=hai) anos
pai
achega
5c3c39c743
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      services/clsi/config/settings.defaults.coffee

+ 2 - 2
services/clsi/config/settings.defaults.coffee

@@ -44,8 +44,8 @@ if process.env["DOCKER_RUNNER"]
 	try
 		seccomp_profile_path = Path.resolve(__dirname + "/../seccomp/clsi-profile.json")
 		module.exports.clsi.seccomp_profile = JSON.stringify(JSON.parse(require("fs").readFileSync(seccomp_profile_path)))
-	catch
-		console.log "could not load seccom profile from #{seccomp_profile_path}"
+	catch error
+		console.log error, "could not load seccom profile from #{seccomp_profile_path}"
 
 	module.exports.path.synctexBaseDir = -> "/compile"