Skip to content

Commit 3b83211

Browse files
committed
Clearer errors for out of date reports
1 parent c441eef commit 3b83211

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ssrs-powershell-deploy/SSRS/Publish-SSRSProject.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,14 @@
114114

115115
if ((test-path $CompiledRdlPath) -eq $false)
116116
{
117-
write-error ('File {0} not found. Build your project before deploying.' -f $CompiledRdlPath)
117+
write-error ('Report "{0}" is listed in the project but wasn''t found in the bin\ folder. Rebuild your project before publishing.' -f $CompiledRdlPath)
118118
break;
119119
}
120120
$RdlLastModified = (get-item $RdlPath).LastWriteTime
121121
$CompiledRdlLastModified = (get-item $CompiledRdlPath).LastWriteTime
122122
if ($RdlLastModified -gt $CompiledRdlLastModified)
123123
{
124-
#warning about to publish older report
125-
write-error ('File {0} is older than source file {1}. Rebuild your project before publishing.' -f $CompiledRdlPath,$RdlPath)
124+
write-error ('Report "{0}" in bin\ is older than source file "{1}". Rebuild your project before publishing.' -f $CompiledRdlPath,$RdlPath)
126125
break;
127126
}
128127
}

0 commit comments

Comments
 (0)