Changeset 95:09424ce58a28
- Timestamp:
- 06/19/08 11:14:28 (5 years ago)
- Author:
- fbatard
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@96
- Message:
-
bug correction for command line unicorn request
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r35
|
r95
|
|
| 1 | 1 | #macro(error $error) |
| 2 | | -- Error ------------------------- |
| 3 | | #if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end: |
| 4 | | #foreach($message in $error.Message) |
| 5 | | >> error.Message: $message |
| 6 | | #end |
| 7 | | #if($error.Context && $error.Context != "") |
| 8 | | >> error.Context: $error.Context |
| 9 | | #end |
| 10 | | #foreach($longMessage in $error.Longmessage) |
| 11 | | #foreach($longMessagePiece in $longMessage.Content) |
| 12 | | >> error.longMessagePiece: $longMessagePiece |
| 13 | | #end |
| 14 | | #end |
| | 2 | ---Error-------------------------- |
| | 3 | #if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end : |
| | 4 | #foreach($message in $error.Message) |
| | 5 | error : $message |
| | 6 | #end |
| | 7 | #if($error.Context && $error.Context != "") |
| | 8 | error context : $error.Context |
| | 9 | #end |
| | 10 | #foreach($longMessage in $error.Longmessage) |
| | 11 | #foreach($longMessagePiece in $longMessage.Content) |
| | 12 | $longMessagePiece |
| | 13 | #end |
| | 14 | #end |
| 15 | 15 | #end |
| 16 | 16 | |
| … |
… |
|
| 48 | 48 | |
| 49 | 49 | #macro(produceErrors $errors) |
| 50 | | // Errors ///////////////////////////////////////// |
| | 50 | ============== Errors =================== |
| 51 | 51 | |
| 52 | | #foreach($errorList in $errors.Errorlist) |
| 53 | | >>>> Location: $errorList.Uri |
| 54 | | #foreach($error in $errorList.Error) |
| 55 | | #error($error) |
| 56 | | #end |
| 57 | | #end |
| | 52 | #foreach($error in $errors) |
| | 53 | #error($error) |
| | 54 | #end |
| 58 | 55 | #end |
| 59 | 56 | |
| 60 | 57 | #macro(produceWarnings $warnings) |
| 61 | | // Warnings /////////////////////////////////////// |
| | 58 | ============== Warnings ================= |
| 62 | 59 | |
| 63 | 60 | #foreach($warningList in $warnings.Warninglist) |
| … |
… |
|
| 72 | 69 | |
| 73 | 70 | #macro(produceInfos $infos) |
| 74 | | // Informations /////////////////////////////////// |
| | 71 | ============== Informations ============= |
| 75 | 72 | |
| 76 | 73 | #foreach($infoList in $infos.Infolist) |
| 77 | | >>>> Location: $infoList.Uri |
| 78 | | #foreach($information in $infoList.Info) |
| 79 | | #info($information) |
| 80 | | #end |
| | 74 | >>>> Location: $infoList.Uri |
| | 75 | #foreach($information in $infoList.Info) |
| | 76 | #info($information) |
| | 77 | #end |
| 81 | 78 | #end |
| 82 | 79 | #end |
| … |
… |
|
| 95 | 92 | #else |
| 96 | 93 | > This document has not passed the #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end test! |
| 97 | | #produceErrors($observation.Result.Errors) |
| | 94 | #foreach($result in $observation.getResultsList()) |
| | 95 | #if(!$result.Errors.isEmpty()) |
| | 96 | Location: $result.Uri |
| | 97 | #produceErrors($result.Errors) |
| | 98 | #end |
| | 99 | #end |
| 98 | 100 | #end |
| 99 | 101 | |