mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Fix error conditions for unrecognized source.
When the source is not recognized, pgloader would not always output a useful error message with the hint about using --type, as per #248. Here we fix the conditions applying to this error message.
This commit is contained in:
parent
fe2e1ee956
commit
65cdc48c1e
@ -398,19 +398,15 @@
|
||||
(log-message :info "SOURCE: ~s" source)
|
||||
(log-message :info "TARGET: ~s" target)
|
||||
|
||||
(cond ((and (null source-uri)
|
||||
(null target-uri)
|
||||
;; (probe-file (uiop:parse-unix-namestring source))
|
||||
;; (probe-file (uiop:parse-unix-namestring target))
|
||||
)
|
||||
(cond ((and (null source-uri) (null target-uri))
|
||||
(process-command-file (list source target)))
|
||||
|
||||
((null source)
|
||||
((or (null source) (null source-uri))
|
||||
(log-message :fatal
|
||||
"Failed to parse ~s as a source URI." source)
|
||||
(log-message :log "You might need to use --type."))
|
||||
|
||||
((null target)
|
||||
((or (null target) (null target-uri))
|
||||
(log-message :fatal
|
||||
"Failed to parse ~s as a PostgreSQL database URI."
|
||||
target)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user