Skip to content

Commit

Permalink
Revert verifier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bugarela committed Oct 9, 2023
1 parent 39fb765 commit efbc6e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions quint/src/cliCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ export async function verifySpec(prev: TypecheckedStage): Promise<CLIProcedure<V
}
}
return {
msg: err.errors.map(quintErrorToString).join('\n'),
stage: { ...verifying, status, errors: err.errors.map(mkErrorMessage(prev.sourceMap)), trace },
msg: err.explanation,
stage: { ...verifying, status, errors: err.errors, trace },
}
})
})
Expand Down
6 changes: 3 additions & 3 deletions quint/src/quintVerifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import { Either, chain, left, right } from '@sweet-monads/either'
import { ErrorMessage } from './ErrorMessage'
import path from 'path'
import fs from 'fs'
import os from 'os'
Expand All @@ -36,7 +37,6 @@ import { verbosity } from './verbosity'

import type { Buffer } from 'buffer'
import type { PackageDefinition as ProtoPackageDefinition } from '@grpc/proto-loader'
import { QuintError } from './quintError'

const APALACHE_SERVER_URI = 'localhost:8822'
const APALACHE_VERSION_TAG = '0.42.0'
Expand All @@ -46,7 +46,7 @@ const APALACHE_VERSION_TAG = '0.42.0'
// The structure used to report errors
type VerifyError = {
explanation: string
errors: QuintError[]
errors: ErrorMessage[]
traces?: ItfTrace[]
}

Expand Down Expand Up @@ -159,7 +159,7 @@ type ShaiPkg = {
}

// Helper to construct errors results
function err<A>(explanation: string, errors: QuintError[] = [], traces?: ItfTrace[]): VerifyResult<A> {
function err<A>(explanation: string, errors: ErrorMessage[] = [], traces?: ItfTrace[]): VerifyResult<A> {
return left({ explanation, errors, traces })
}

Expand Down

0 comments on commit efbc6e7

Please sign in to comment.