Skip to content

Error handling / Output (see warnings for details. ) #263

Answered by lowlydba
tovoro asked this question in Q&A
Discussion options

You must be logged in to vote

@tovoro This will be resolved in version 2.3.4 (released!)

The log output for the restore command will now include warnings when it fails:

fatal: [runner]: FAILED! => {"changed": false, "failed_when_result": true, "msg": "Error restoring database: Database model_restore unable to be restored, see warnings for details. Additional warnings: [17:24:42][Test-DbaBackupInformation] Database model_restore exists, so WithReplace must be specified [17:24:42][Test-DbaBackupInformation] File C:\\Program Files\\Microsoft SQL Server\\MSSQL16.MSSQLSERVER\\MSSQL\\DATA\\db_model_restore_new.mdf already exists on fv-az731-605 and WithReplace not specified, cannot restore [17:24:42][Test-DbaBackupInformati…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@briantist
Comment options

@tovoro
Comment options

@lowlydba
Comment options

@lowlydba
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lowlydba
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants