The error handling routine that is used by default reports errors via the Starlink Error Reporting
System (SUN/104) and the error channel parameter passed to GOPWK
is ignored.
Using the ERR package for error reporting not only makes GKS’s error reporting the same as other Starlink subroutine libraries, but also allows programs to detect that GKS has reported an error without having to supply their own error reporting routine. The following example show how this is done: