mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-06 03:16:10 +02:00
Refrain from parsing a non-existing command file...
This commit is contained in:
parent
3f61c66a79
commit
d132bafc07
@ -165,9 +165,10 @@
|
||||
#'(lambda (condition)
|
||||
(log-message :fatal "We have a situation here.")
|
||||
(print-backtrace condition debug *standard-output*))))
|
||||
|
||||
(run-commands (fad:canonical-pathname filename)
|
||||
:start-logger nil)
|
||||
(let ((truename (probe-file filename)))
|
||||
(if truename
|
||||
(run-commands truename :start-logger nil)
|
||||
(log-message :error "Can not find file: ~s" filename)))
|
||||
(format t "~&"))
|
||||
|
||||
(condition (c)
|
||||
|
||||
@ -1862,7 +1862,9 @@ load database
|
||||
"The command could be using from :inline, in which case we want to parse
|
||||
as much as possible then use the command against an already opened stream
|
||||
where we moved at the beginning of the data."
|
||||
(log-message :log "Parsing commands from file ~s~%" filename)
|
||||
(if filename
|
||||
(log-message :log "Parsing commands from file ~s~%" filename)
|
||||
(error "Can not find file: ~s" maybe-relative-filename))
|
||||
|
||||
(process-relative-pathnames
|
||||
filename
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user